Class: CamaleonCms::PostComment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CamaleonCms::PostComment
- Includes:
- Metas
- Defined in:
- app/models/camaleon_cms/post_comment.rb
Instance Attribute Summary collapse
-
#is_anonymous ⇒ Object
attr_accessible :user_id, :post_id, :content, :author, :author_email, :author_url, :author_IP, :approved, :agent, :agent, :typee, :comment_parent, :is_anonymous.
Instance Method Summary collapse
-
#comment_user ⇒ Object
return the owner of this comment.
-
#is_approved? ⇒ Boolean
check if this comments is already approved.
Methods included from Metas
#delete_meta, #delete_option, #fix_save_metas_options_no_changed, #get_meta, #get_option, #options, #save_metas_options, #save_metas_options_skip, #set_meta, #set_metas, #set_option, #set_options
Instance Attribute Details
#is_anonymous ⇒ Object
attr_accessible :user_id, :post_id, :content, :author, :author_email, :author_url, :author_IP, :approved, :agent, :agent, :typee, :comment_parent, :is_anonymous
5 6 7 |
# File 'app/models/camaleon_cms/post_comment.rb', line 5 def is_anonymous @is_anonymous end |
Instance Method Details
#comment_user ⇒ Object
return the owner of this comment
28 29 30 |
# File 'app/models/camaleon_cms/post_comment.rb', line 28 def comment_user self.user end |
#is_approved? ⇒ Boolean
check if this comments is already approved
33 34 35 |
# File 'app/models/camaleon_cms/post_comment.rb', line 33 def is_approved? self.approved == 'approved' end |