lib/generators/buildybuild/cms/templates/cms_model.rb in buildybuild-0.0.1 vs lib/generators/buildybuild/cms/templates/cms_model.rb in buildybuild-1.0.0
- old
+ new
@@ -1,9 +1,9 @@
-class <%= klass %> < ActiveRecord::Base
+class <%= klass %>
attr_accessible :body, :name, :slug
- default_scope order('created_at DESC, updated_at DESC')
+ default_scope order('created_at DESC, updated_at DESC')\n
validates_uniqueness_of :name
before_save :update_slug