Sha256: 158f7409c0513dcbd9a36ed63339c325af2018d9e542224743af4609a1592d67

Contents?: true

Size: 244 Bytes

Versions: 8

Compression:

Stored size: 244 Bytes

Contents

class PagePart < ::ActiveRecord::Base
  belongs_to :partable, :polymorphic => true
  
  validates_presence_of :key, :partable_type
  validates_uniqueness_of :key, :scope => [:partable_type, :partable_id]
  
  attr_accessible :key, :content
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/page_parts-0.0.3/app/models/page_part.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/page_parts-0.0.3/app/models/page_part.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/page_parts-0.0.3/app/models/page_part.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/page_parts-0.0.3/app/models/page_part.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/page_parts-0.0.3/app/models/page_part.rb
page_parts-0.0.3 app/models/page_part.rb
page_parts-0.0.2 app/models/page_part.rb
page_parts-0.0.1 app/models/page_part.rb