Class: Katalyst::Navigation::Button

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

#layout?

Class Method Details

.permitted_paramsObject



14
15
16
# File 'app/models/katalyst/navigation/button.rb', line 14

def self.permitted_params
  super + i[http_method]
end