lib/rooftop/content/content_fields.rb in rooftop-0.0.6 vs lib/rooftop/content/content_fields.rb in rooftop-0.0.7.4

- old
+ new

@@ -32,8 +32,13 @@ fieldset[:fields] end.flatten r.fields = Rooftop::Content::Collection.new((basic_fields + advanced_fields)) end }) + + base.send(:before_save, ->(r) { + r.restore_fields! unless r.new? + #TODO we need to write these back into the actual fields. + }) end end -end \ No newline at end of file +end