Sha256: 1fa2625cb63a81587ac5b6bef3dde2fcb95fb5f803374b28a46260c88b1a86c2
Contents?: true
Size: 582 Bytes
Versions: 30
Compression:
Stored size: 582 Bytes
Contents
class Cms::Categorization < ActiveRecord::Base ComfortableMexicanSofa.establish_connection(self) set_table_name :cms_categorizations # -- 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
30 entries across 30 versions & 1 rubygems