Sha256: 0f2273009e039aa2e33b99c6f98d2b0cc9aa6859789863f1a8cecce6ad600e70

Contents?: true

Size: 157 Bytes

Versions: 13

Compression:

Stored size: 157 Bytes

Contents

module Pulitzer
  class Tag < ActiveRecord::Base
    has_many :post_tags, as: :label, dependent: :destroy
    has_many :posts, through: :post_tags
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pulitzer-0.1.7 app/models/pulitzer/tag.rb
pulitzer-0.1.6 app/models/pulitzer/tag.rb
pulitzer-0.1.5 app/models/pulitzer/tag.rb
pulitzer-0.1.4 app/models/pulitzer/tag.rb
pulitzer-0.1.3 app/models/pulitzer/tag.rb
pulitzer-0.1.2 app/models/pulitzer/tag.rb
pulitzer-0.1.1 app/models/pulitzer/tag.rb
pulitzer-0.1.0 app/models/pulitzer/tag.rb
pulitzer-0.0.5 app/models/pulitzer/tag.rb
pulitzer-0.0.4 app/models/pulitzer/tag.rb
pulitzer-0.0.3 app/models/pulitzer/tag.rb
pulitzer-0.0.2 app/models/pulitzer/tag.rb
pulitzer-0.0.1 app/models/pulitzer/tag.rb