Sha256: 8d7b911addae3e5cbece8221604ee7960cc099514fa616d34130389cb7ef0af0

Contents?: true

Size: 195 Bytes

Versions: 83

Compression:

Stored size: 195 Bytes

Contents

module Tenon
  class PostCategory < ActiveRecord::Base
    has_and_belongs_to_many :posts, class_name: 'Tenon::Post'
    validates_uniqueness_of :title
    validates_presence_of :title
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.0.64 app/models/tenon/post_category.rb
tenon-1.0.63 app/models/tenon/post_category.rb
tenon-1.0.62 app/models/tenon/post_category.rb
tenon-1.0.61 app/models/tenon/post_category.rb
tenon-1.0.60 app/models/tenon/post_category.rb
tenon-1.0.59 app/models/tenon/post_category.rb
tenon-1.0.57 app/models/tenon/post_category.rb
tenon-1.0.56 app/models/tenon/post_category.rb
tenon-1.0.55 app/models/tenon/post_category.rb
tenon-1.0.54 app/models/tenon/post_category.rb
tenon-1.0.53 app/models/tenon/post_category.rb
tenon-1.0.52 app/models/tenon/post_category.rb
tenon-1.0.51 app/models/tenon/post_category.rb
tenon-1.0.50 app/models/tenon/post_category.rb
tenon-1.0.49 app/models/tenon/post_category.rb
tenon-1.0.48 app/models/tenon/post_category.rb
tenon-1.0.47 app/models/tenon/post_category.rb
tenon-1.0.46 app/models/tenon/post_category.rb
tenon-1.0.45 app/models/tenon/post_category.rb
tenon-1.0.44 app/models/tenon/post_category.rb