lib/lookbook/page_section.rb in lookbook-1.0.0.beta.7 vs lib/lookbook/page_section.rb in lookbook-1.0.0.beta.8

- old
+ new

@@ -1,8 +1,7 @@ module Lookbook class PageSection < Page - def name return @name if @name.present? matches = full_path.to_s.match(%r{\[(?<name>\w+)\]}) @name ||= matches[:name] end @@ -22,10 +21,9 @@ def type :page_section end def lookup_path - "#{super}/#{name}" + "#{super}/#{name}" end - end -end \ No newline at end of file +end