Sha256: 25016881b03832c20cdec81e51d788d36ac2b5254ab514d312f811d13d6b6997

Contents?: true

Size: 172 Bytes

Versions: 11

Compression:

Stored size: 172 Bytes

Contents

class PostCategory < ActiveRecord::Base
  has_and_belongs_to_many :posts
  validates_uniqueness_of :title

  # open up everything for mass assignment
  attr_protected

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/models/post_category.rb
forge-cli-0.1.9 lib/forge/app/models/post_category.rb
forge-cli-0.1.8 lib/forge/app/models/post_category.rb
forge-cli-0.1.7 lib/forge/app/models/post_category.rb
forge-cli-0.1.6 lib/forge/app/models/post_category.rb
forge-cli-0.1.5 lib/forge/app/models/post_category.rb
forge-cli-0.1.4 lib/forge/app/models/post_category.rb
forge-cli-0.1.3 lib/forge/app/models/post_category.rb
forge-cli-0.1.2 lib/forge/app/models/post_category.rb
forge-cli-0.1.1 lib/forge/app/models/post_category.rb
forge-cli-0.1.0 lib/forge/app/models/post_category.rb