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.229 app/models/caboose/page_custom_field_value.rb
caboose-cms-1.0.2 app/models/caboose/page_custom_field_value.rb
caboose-cms-1.0.1 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.228 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.227 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.226 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.225 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.224 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.223 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.222 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.221 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.220 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.219 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.218 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.217 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.216 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.215 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.214 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.213 app/models/caboose/page_custom_field_value.rb
caboose-cms-0.9.212 app/models/caboose/page_custom_field_value.rb