Skip to content

Commit

Permalink
Use datadir extension from ibeams - fix yaml load
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed Jan 24, 2023
1 parent 8be7777 commit 4d1ac55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/awestruct/util/yaml_load.rb
Expand Up @@ -7,7 +7,7 @@ def self.yaml_load(str)
end

def self.yaml_load_file(str)
return YAML.load_file(str) unless YAML.method('load_file').parameters.any? {|k,v| v == :permitted_classes}
return YAML.load_file(str) unless YAML.method('load').parameters.any? {|k,v| v == :permitted_classes}
YAML.load_file(str, permitted_classes: [Date, Symbol])
end

Expand Down
2 changes: 1 addition & 1 deletion lib/awestruct/version.rb
@@ -1,3 +1,3 @@
module Awestruct
VERSION = '0.6.3'
VERSION = '0.6.4'
end

0 comments on commit 4d1ac55

Please sign in to comment.