Sha256: a9c10ebe005255432e72786f46f9f5e9175659d119e2af1bc830bdf2c84b73be

Contents?: true

Size: 236 Bytes

Versions: 28

Compression:

Stored size: 236 Bytes

Contents

class Categ < ActiveRecord::Base
  CAT_1 = 0
  CAT_2 = 1

  self.primary_key = :cat_id

  has_many :subcategs, :foreign_key => :fk_subcat_id

  def cat_id
    # required for Rails 3.2 compatibility
    read_attribute(:cat_id)
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
counter_culture-2.2.2 spec/models/categ.rb
counter_culture-2.2.1 spec/models/categ.rb
counter_culture-2.2.0 spec/models/categ.rb
counter_culture-2.1.4 spec/models/categ.rb
counter_culture-2.1.3 spec/models/categ.rb
counter_culture-2.1.2 spec/models/categ.rb
counter_culture-2.1.1 spec/models/categ.rb
counter_culture-2.1.0 spec/models/categ.rb
counter_culture-2.0.1 spec/models/categ.rb
counter_culture-2.0.0 spec/models/categ.rb
counter_culture-1.12.0 spec/models/categ.rb
counter_culture-1.11.0 spec/models/categ.rb
counter_culture-1.10.0 spec/models/categ.rb
counter_culture-1.9.2 spec/models/categ.rb
counter_culture-1.9.1 spec/models/categ.rb
counter_culture-1.9.0 spec/models/categ.rb
counter_culture-1.8.2 spec/models/categ.rb
counter_culture-1.8.1 spec/models/categ.rb
counter_culture-1.8.0 spec/models/categ.rb
counter_culture-1.7.0 spec/models/categ.rb