Sha256: 90b1fee4dbefc59358243f4b8f74cf52385df6dde49ad1dedbaf6b2d3ecce451
Contents?: true
Size: 526 Bytes
Versions: 4
Compression:
Stored size: 526 Bytes
Contents
class StaticPage < ActiveRecord::Base attr_accessible :structure_id, :title, :content, :kind, :is_visible belongs_to :structure has_many :pictures, :as => :assetable, :dependent => :destroy has_many :attachment_files, :as => :assetable, :dependent => :destroy, :autosave => true validates_presence_of :title, :content enumerated_attribute :static_page_type, :id_attribute => :kind fileuploads :pictures, :attachment_files translates :title, :content attr_accessible *all_translated_attribute_names end
Version data entries
4 entries across 4 versions & 1 rubygems