Undo my previous change, apparently it is no good

This commit is contained in:
Ben Hollis 2013-04-04 23:22:38 -07:00
parent f7d1471edb
commit c2ffa538ad

View file

@ -89,9 +89,7 @@ module Middleman::CoreExtensions
content = content.sub(yaml_regex, "")
begin
data = YAML.load($1)
return false unless data
data.symbolize_keys
data = YAML.load($1).symbolize_keys
rescue *YAML_ERRORS => e
logger.error "YAML Exception: #{e.message}"
return false