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

Version Path
caboose-cms-0.8.15 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.14 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.13 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.12 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.11 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.10 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.9 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.8 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.7 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.6 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.5 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.4 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.3 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.2 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.8.1 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.7.85 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.7.84 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.7.83 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.7.82 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.7.81 app/models/caboose/page_custom_field_value.rb