app/cells/lato_view/component/button/cell.rb in lato_view-1.1.4 vs app/cells/lato_view/component/button/cell.rb in lato_view-1.1.5

- old
+ new

@@ -2,17 +2,19 @@ class Component::Button::Cell < Cell @@colors = %w(normal yellow green red) @@sizes = %w(normal small) - attr_accessor :title, :url, :color, :size + attr_accessor :title, :url, :color, :size, :custom_class, :method - def initialize(title: '', url: '', color: 'normal', size: 'normal') + def initialize(title: '', url: '', color: 'normal', size: 'normal', custom_class: '', method: 'get') # save params @title = title @url = url @color = color @size = size + @method = method + @custom_class = custom_class # check params check_params end def show