Sha256: 51c5bd7c98fb3e2e3037edda24660b055c73bf185c9e2322bcb6dcc8dbc21826

Contents?: true

Size: 126 Bytes

Versions: 15

Compression:

Stored size: 126 Bytes

Contents

class Comment < ActiveRecord::Base
  belongs_to :commentable, :polymorphic =>true
  has_many :posts,:dependent => :destroy
end

Version data entries

15 entries across 8 versions & 1 rubygems

Version Path
squeezer-0.2.1 lib/generators/squeezer/templates/app/models/comment.rb
squeezer-0.2.1 app/models/comment.rb
squeezer-0.2.0 lib/generators/squeezer/templates/app/models/comment.rb
squeezer-0.2.0 app/models/comment.rb
squeezer-0.1.11 app/models/comment.rb
squeezer-0.1.11 lib/generators/squeezer/templates/app/models/comment.rb
squeezer-0.1.7 lib/generators/squeezer/templates/app/models/comment.rb
squeezer-0.1.7 app/models/comment.rb
squeezer-0.1.6 app/models/comment.rb
squeezer-0.1.6 lib/generators/squeezer/templates/app/models/comment.rb
squeezer-0.1.5 lib/generators/squeezer/templates/app/models/comment.rb
squeezer-0.1.5 app/models/comment.rb
squeezer-0.1.4 lib/generators/squeezer/templates/app/models/comment.rb
squeezer-0.1.4 app/models/comment.rb
squeezer-0.1.3 lib/app/models/comment.rb