Sha256: ac979da864dd5cbe944c98a132dd5f244e3499c2a87785f7ea46e080a78d23a5
Contents?: true
Size: 683 Bytes
Versions: 297
Compression:
Stored size: 683 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 => page_custom_field_id, :key => self.key, :value => self.value, :sort_order => self.sort_order ) return v end end
Version data entries
297 entries across 297 versions & 1 rubygems