lib/enjoy/models/page.rb in enjoy_cms-0.2.0.3.2 vs lib/enjoy/models/page.rb in enjoy_cms-0.2.1

- old
+ new

@@ -21,9 +21,18 @@ before_validation do self.fullpath = "/pages/#{slug}" if self.fullpath.blank? end end + module ClassMethods + def rails_admin_add_fields + {} + end + + def rails_admin_add_config(config) + end + end + def page_h1 _ret = seo ? seo.h1 : nil _ret = name if _ret.blank? _ret = title if _ret.blank? _ret