fix bug.
This commit is contained in:
parent
ff317e48e9
commit
6f0e3501b8
|
@ -6,7 +6,7 @@ class Memo < ActiveRecord::Base
|
|||
validates_presence_of :author_id, :forum_id, :subject
|
||||
validates :content, presence: true
|
||||
validates_length_of :subject, maximum: 50
|
||||
validates_length_of :content#, maximum: 3072
|
||||
#validates_length_of :content, maximum: 3072
|
||||
validate :cannot_reply_to_locked_topic, :on => :create
|
||||
|
||||
acts_as_tree :counter_cache => :replies_count, :order => "#{Memo.table_name}.created_at ASC"
|
||||
|
|
Loading…
Reference in New Issue