Sha256: 3c1931e92a7bff45fe18a1bccea5cba396be18cbd22887aacefdd5ee1d399603

Contents?: true

Size: 215 Bytes

Versions: 23

Compression:

Stored size: 215 Bytes

Contents

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

    validates :name, presence: true, uniqueness: true
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
pulitzer-0.4.6 app/models/pulitzer/tag.rb
pulitzer-0.4.5 app/models/pulitzer/tag.rb
pulitzer-0.4.4 app/models/pulitzer/tag.rb
pulitzer-0.4.3 app/models/pulitzer/tag.rb
pulitzer-0.4.2 app/models/pulitzer/tag.rb
pulitzer-0.4.1 app/models/pulitzer/tag.rb
pulitzer-0.4.0 app/models/pulitzer/tag.rb
pulitzer-0.3.9 app/models/pulitzer/tag.rb
pulitzer-0.3.8 app/models/pulitzer/tag.rb
pulitzer-0.3.7 app/models/pulitzer/tag.rb
pulitzer-0.3.6 app/models/pulitzer/tag.rb
pulitzer-0.3.5 app/models/pulitzer/tag.rb
pulitzer-0.3.4 app/models/pulitzer/tag.rb
pulitzer-0.3.3 app/models/pulitzer/tag.rb
pulitzer-0.3.2 app/models/pulitzer/tag.rb
pulitzer-0.3.1 app/models/pulitzer/tag.rb
pulitzer-0.3.0 app/models/pulitzer/tag.rb
pulitzer-0.2.2 app/models/pulitzer/tag.rb
pulitzer-0.2.1 app/models/pulitzer/tag.rb
pulitzer-0.2.0 app/models/pulitzer/tag.rb