Skip to content

Commit

Permalink
Merge pull request #184 from pulibrary/ruby-2_6-yaml
Browse files Browse the repository at this point in the history
Small change to yaml for ruby 2.6
  • Loading branch information
jrgriffiniii committed Mar 19, 2020
2 parents afbdefc + 4c30f0b commit d8324db
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions config/initializers/plantain_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ def config
private

def config_yaml
# This invocation will change in ruby 2.6 to
# YAML.safe_load(yaml, aliases: true)[Rails.env]
YAML.safe_load(yaml, [], [], true)[Rails.env]
YAML.safe_load(yaml, aliases: true)[Rails.env]
end

def yaml
Expand Down

0 comments on commit d8324db

Please sign in to comment.