lib/enjoy/models/news.rb in enjoy_cms-0.2.1 vs lib/enjoy/models/news.rb in enjoy_cms-0.3.0.2
- old
+ new
@@ -34,18 +34,9 @@
end
smart_excerpt :excerpt, :content, Enjoy.config.news_excerpt
manual_slug :report_slug
end
- module ClassMethods
- def rails_admin_add_fields
- {}
- end
-
- def rails_admin_add_config(config)
- end
- end
-
def report_slug
if time.blank?
name
elsif name.blank?
time.strftime('%Y-%m-%d')