lib/ecm/cms/database_resolver.rb in ecm_cms-1.0.0.pre vs lib/ecm/cms/database_resolver.rb in ecm_cms-1.0.1.pre

- old
+ new

@@ -61,10 +61,10 @@ :format => format, :updated_at => record.updated_at, :virtual_path => "#{record.pathname}#{record.basename}" } - details[:layout] = record.layout if record.layout.present? + details[:layout] = record.layout if record.respond_to?(:layout) && record.layout.present? ::ActionView::Template.new(source, identifier, handler, details) end def assert_slashs(prefix)