lib/alchemy/page_layout.rb in alchemy_cms-3.6.7 vs lib/alchemy/page_layout.rb in alchemy_cms-4.0.0.beta
- old
+ new
@@ -155,10 +155,10 @@
# Reads the layout definitions from +config/alchemy/page_layouts.yml+.
#
def read_definitions_file
if File.exist?(layouts_file_path)
- YAML.safe_load(ERB.new(File.read(layouts_file_path)).result, YAML_WHITELIST_CLASSES, [], true) || []
+ YAML.safe_load(ERB.new(File.read(layouts_file_path)).result, [Date], [], true) || []
else
raise LoadError, "Could not find page_layouts.yml file! Please run `rails generate alchemy:scaffold`"
end
end