Sha256: dbac9a170a14c486a0f885f88a585fe4e74575a416cdb1e438e11916a29c93c0
Contents?: true
Size: 682 Bytes
Versions: 39
Compression:
Stored size: 682 Bytes
Contents
class Caboose::PageCustomFieldValue < ActiveRecord::Base self.table_name = "page_custom_field_values" belongs_to :page belongs_to :page_custom_field attr_accessible :id , :page_id , :page_custom_field_id , :key , :value , :sort_order def duplicate(page_id, page_custom_field_id) v = Caboose::PageCustomFieldValue.create( :page_id => page_id, :page_custom_field_id => pag_custom_field_id, :key => self.key, :value => self.value, :sort_order => self.sort_order ) return v end end
Version data entries
39 entries across 39 versions & 1 rubygems