lib/generators/freeberry/models/templates/models/comment.rb in freeberry-0.2.7 vs lib/generators/freeberry/models/templates/models/comment.rb in freeberry-0.2.9
- old
+ new
@@ -1,9 +1,7 @@
class Comment < ActiveRecord::Base
include Freeberry::Models::Comment
- using_access_control
-
validates :content, :presence => true, :length => { :maximum => 500 }
validates :commentable_type, :presence => true, :inclusion => { :in => %w( Post Article ) }
validates :author_type, :inclusion => { :in => %w( User FreeberryAuth::Account ) }, :allow_blank => true
with_options :if => :anonymous? do |anonymous|