Class: Decidim::CommentsButtonCell
- Inherits:
-
ButtonCell
- Object
- ViewModel
- ButtonCell
- Decidim::CommentsButtonCell
- Includes:
- UserRoleChecker
- Defined in:
- app/cells/decidim/comments_button_cell.rb
Constant Summary
Constants inherited from ButtonCell
ButtonCell::DEFAULT_ATTRIBUTES
Instance Method Summary collapse
Methods inherited from ButtonCell
Methods included from ResourceHelper
#linked_classes_filter_values_for, #linked_classes_for, #resource_locator
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/cells/decidim/comments_button_cell.rb', line 7 def show if .has_key?(:display) return render if [:display] return end render if comments_enabled? end |