Sha256: a462885b807e7103e218fe7dc131f0a64c6d41720b5dc65abbc61782a00e996c
Contents?: true
Size: 322 Bytes
Versions: 36
Compression:
Stored size: 322 Bytes
Contents
class Book < ActiveRecord::Base belongs_to :topic, inverse_of: :books belongs_to :tag, foreign_key: [:tag_id, :parent_id] has_many :chapters, inverse_of: :book has_many :discounts, as: :discountable has_many :end_notes, inverse_of: :book enum status: [:draft, :published] if ENV['AR_VERSION'].to_f >= 4.1 end
Version data entries
36 entries across 36 versions & 2 rubygems