Sha256: 9da850b2348ae913e19742d9b674d156aa06065ff3392481259159bae4ed897a
Contents?: true
Size: 227 Bytes
Versions: 3
Compression:
Stored size: 227 Bytes
Contents
module Booklist class Tag < ActiveRecord::Base has_many :taggings has_many :books, through: :taggings #, source: "tag_id" end class Tagging < ActiveRecord::Base belongs_to :tag belongs_to :book end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
booklist-0.0.10 | lib/booklist/tag.rb |
booklist-0.0.9 | lib/booklist/tag.rb |
booklist-0.0.7 | lib/booklist/tag.rb |