Class: Katalyst::Navigation::Button
- Defined in:
- app/models/katalyst/navigation/button.rb
Overview
Renders an HTML button using ‘button_to`.
Constant Summary collapse
- HTTP_METHODS =
i[get post patch put delete].index_by(&:itself).freeze
Instance Attribute Summary
Attributes inherited from Item
#children, #depth, #index, #parent
Class Method Summary collapse
Methods inherited from Item
Class Method Details
.permitted_params ⇒ Object
14 15 16 |
# File 'app/models/katalyst/navigation/button.rb', line 14 def self.permitted_params super + i[http_method] end |