Sha256: 2b8c37266fd92f3afaa9be81767a6bb49267cf6fffbbb5fd6ff6b55ba40dade1
Contents?: true
Size: 506 Bytes
Versions: 8
Compression:
Stored size: 506 Bytes
Contents
class Cms::Categorization < ActiveRecord::Base include Cms::Base # -- 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
8 entries across 8 versions & 1 rubygems