Class: Comment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Comment
- Defined in:
- app/models/polymorphic/comment.rb
Overview
Schema Information
Table name: comments
id :integer not null, primary key
user_id :integer
commentable_id :integer
commentable_type :string(255)
private :boolean
title :string(255) default("")
comment :text
created_at :datetime
updated_at :datetime
state :string(16) default("Expanded"), not null
Instance Method Summary collapse
Instance Method Details
#collapsed? ⇒ Boolean
46 |
# File 'app/models/polymorphic/comment.rb', line 46 def collapsed?; self.state == "Collapsed"; end |
#expanded? ⇒ Boolean
45 |
# File 'app/models/polymorphic/comment.rb', line 45 def ; self.state == "Expanded"; end |