Sha256: 201d976c4b7cc458dd62f6a9dd11e226b50123f672d91a2d377d544f1769a9c5
Contents?: true
Size: 620 Bytes
Versions: 18
Compression:
Stored size: 620 Bytes
Contents
class Cms::Categorization < ActiveRecord::Base ComfortableMexicanSofa.establish_connection(self) self.table_name = 'cms_categorizations' attr_accessible :categorized # -- Relationships -------------------------------------------------------- belongs_to :category belongs_to :categorized, :polymorphic => true # -- Validations ---------------------------------------------------------- validates :categorized_type, :categorized_id, :presence => true validates :category_id, :presence => true, :uniqueness => { :scope => [:categorized_type, :categorized_id] } end
Version data entries
18 entries across 18 versions & 1 rubygems