Class: Decidim::CommentsButtonCell

Inherits:
ButtonCell
  • Object
show all
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

#button_attributes

Methods included from ResourceHelper

#linked_classes_filter_values_for, #linked_classes_for, #resource_locator

Instance Method Details

#showObject



7
8
9
10
11
12
13
14
15
# File 'app/cells/decidim/comments_button_cell.rb', line 7

def show
  if options.has_key?(:display)
    return render if options[:display]

    return
  end

  render if comments_enabled?
end