Skip to content

Commit

Permalink
Add psych dependency for yaml configs
Browse files Browse the repository at this point in the history
  • Loading branch information
justalever committed Jun 29, 2023
1 parent da6fa63 commit 2282110
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/railsui/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize(options = {})

def self.load!
if File.exist?(config_path)
config = Psych.safe_load_file(config_path, permitted_classes: [Hash, Railsui::Configuration])
config = Psych.load_file(config_path, permitted_classes: [Hash, Railsui::Configuration])
return config if config.is_a?(Railsui::Configuration)
new(config)
else
Expand Down
1 change: 1 addition & 0 deletions railsui.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ Gem::Specification.new do |spec|

spec.add_dependency 'rails', '>= 7.0'
spec.add_dependency 'inline_svg', '>= 1.9'
spec.add_dependency 'psych'
end

0 comments on commit 2282110

Please sign in to comment.