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

Version Path
caboose-cms-0.9.150 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.149 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.148 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.147 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.146 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.145 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.144 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.143 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.142 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.141 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.140 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.139 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.138 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.137 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.136 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.135 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.134 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.133 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.132 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.131 app/models/caboose/page_custom_field_value.rb