Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
commit
1f5d792783
@ -1,6 +1,6 @@
|
||||
class FirstPage < ActiveRecord::Base
|
||||
attr_accessible :description, :title, :web_title,:page_type
|
||||
validates_presence_of :web_title, :title, :description,:page_type,:sort_type
|
||||
attr_accessible :description, :title, :web_title,:page_type,:sort_type
|
||||
validates_presence_of :web_title, :title, :description,:page_type
|
||||
validates_length_of :web_title,:title, maximum: 30
|
||||
validates_length_of :description, maximum: 100
|
||||
end
|
||||
|
Loading…
Reference in new issue