Class: Decidim::Comments::CommentFormCell
- Inherits:
-
ViewModel
- Object
- ViewModel
- Decidim::Comments::CommentFormCell
- Defined in:
- app/cells/decidim/comments/comment_form_cell.rb
Overview
A cell to display a form for adding a new comment.
Instance Method Summary collapse
Instance Method Details
#comment_as ⇒ Object
7 8 9 10 11 |
# File 'app/cells/decidim/comments/comment_form_cell.rb', line 7 def comment_as return if current_user.blank? render end |
#two_columns_layout? ⇒ Boolean
13 14 15 |
# File 'app/cells/decidim/comments/comment_form_cell.rb', line 13 def two_columns_layout? model.respond_to?(:two_columns_layout?) && model.two_columns_layout? end |