Sha256: efb5740585d6f04344b859994390b525af6b111f58b0bcf907319475de85e0b9

Contents?: true

Size: 250 Bytes

Versions: 10

Compression:

Stored size: 250 Bytes

Contents

class SpudPostComment < ActiveRecord::Base

	validates_presence_of :author, :content
	belongs_to :post, :class_name => 'SpudPost', :foreign_key => 'spud_post_id', :counter_cache => :comments_count
	
	attr_accessible :author,:content,:spud_post_id
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
spud_blog-0.8.14 app/models/spud_post_comment.rb
spud_blog-0.8.13 app/models/spud_post_comment.rb
spud_blog-0.8.12 app/models/spud_post_comment.rb
spud_blog-0.8.11 app/models/spud_post_comment.rb
spud_blog-0.8.8 app/models/spud_post_comment.rb
spud_blog-0.8.7 app/models/spud_post_comment.rb
spud_blog-0.8.6 app/models/spud_post_comment.rb
spud_blog-0.8.5 app/models/spud_post_comment.rb
spud_blog-0.8.4 app/models/spud_post_comment.rb
spud_blog-0.8.3 app/models/spud_post_comment.rb