Sha256: e35b75c438e113dbf76ac6e5d7bd1ae43d49d3fe1f58a3a5e37462060863a801

Contents?: true

Size: 267 Bytes

Versions: 28

Compression:

Stored size: 267 Bytes

Contents

class Subcateg < ActiveRecord::Base
  SUBCAT_1 = 0
  SUBCAT_2 = 1

  self.primary_key = :subcat_id

  has_many :posts
  belongs_to :categ, :foreign_key => :fk_cat_id

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

Version data entries

28 entries across 28 versions & 1 rubygems

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