Sha256: eb4f50f67a55117c21266629efc9f40595e97a4a213ac77dec636ce7ee219a32

Contents?: true

Size: 400 Bytes

Versions: 15

Compression:

Stored size: 400 Bytes

Contents

class Cms::Block < ActiveRecord::Base
  
  ComfortableMexicanSofa.establish_connection(self)
  
  set_table_name :cms_blocks
  
  # -- Relationships --------------------------------------------------------
  belongs_to :page
  
  # -- Validations ----------------------------------------------------------
  validates :label,
    :presence   => true,
    :uniqueness => { :scope => :page_id }
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.4.22 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.21 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.20 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.19 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.18 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.17 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.16 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.15 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.14 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.13 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.12 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.11 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.10 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.9 app/models/cms/block.rb
comfortable_mexican_sofa-1.4.8 app/models/cms/block.rb