You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
478 B
9 lines
478 B
6 years ago
|
class FirstPage < ActiveRecord::Base
|
||
|
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_inclusion_of :image_width,:in => 50..120, :message => l(:image_width_error_message)
|
||
|
validates_inclusion_of :image_height,:in => 50..80, :message => l(:image_height_error_message)
|
||
|
#validates_length_of :description, maximum: 100
|
||
|
end
|