lib/nanoc/base/source_data/layout.rb in nanoc-4.0.0a1 vs lib/nanoc/base/source_data/layout.rb in nanoc-4.0.0a2
- old
+ new
@@ -27,10 +27,10 @@
#
# @param [Hash] params Extra parameters. Unused.
def initialize(raw_content, attributes, identifier, params = {})
@raw_content = raw_content
@attributes = attributes.__nanoc_symbolize_keys_recursively
- @identifier = Nanoc::Identifier.new(identifier)
+ @identifier = Nanoc::Identifier.from(identifier)
end
# Requests the attribute with the given key.
#
# @param [Symbol] key The name of the attribute to fetch.