allow comments to be 65535 chars long (as opposed to 2500)
This commit is contained in:
parent
a1df9fe8db
commit
2c041701ea
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class Comment < ActiveRecord::Base
|
||||||
alias_attribute :post, :commentable
|
alias_attribute :post, :commentable
|
||||||
belongs_to :author, :class_name => 'Person'
|
belongs_to :author, :class_name => 'Person'
|
||||||
|
|
||||||
validates :text, :presence => true, :length => {:maximum => 2500}
|
validates :text, :presence => true, :maximum => 65535, :message => I18n.t('status_messages.too_long', :count => 65535)
|
||||||
validates :parent, :presence => true #should be in relayable (pending on fixing Message)
|
validates :parent, :presence => true #should be in relayable (pending on fixing Message)
|
||||||
|
|
||||||
scope :including_author, includes(:author => :profile)
|
scope :including_author, includes(:author => :profile)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue