Sha256: ff96793c985270764c8781883a51c4eaefd4e71db0f619a0f181a6e041f443a0

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

class Comfy::Cms::Categorization < ActiveRecord::Base
  self.table_name = "comfy_cms_categorizations"

  # -- Relationships -----------------------------------------------------------
  belongs_to :category
  belongs_to :categorized,
    polymorphic: true

  # -- Validations -------------------------------------------------------------
  validates :category_id,
    uniqueness: { scope: [:categorized_type, :categorized_id] }

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.2 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.1 app/models/comfy/cms/categorization.rb
comfortable_mexican_sofa-2.0.0 app/models/comfy/cms/categorization.rb