Sha256: a8cb98d1d79fd7828e1a83b69df873f3d2f4804cdfe9d2e106c2c27c8cc88677

Contents?: true

Size: 196 Bytes

Versions: 7

Compression:

Stored size: 196 Bytes

Contents

class Topic < ActiveRecord::Base
  validates_presence_of :title,:forum_id 
  attr_accessible :title, :forum_id
  has_one :comment, :as=>:commentable,:dependent => :destroy
  belongs_to :forum
end

Version data entries

7 entries across 7 versions & 1 rubygems

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