Module: Tramway::Admin::AdditionalButtonsBuilder
- Included in:
- ApplicationHelper
- Defined in:
- app/helpers/tramway/admin/additional_buttons_builder.rb
Instance Method Summary collapse
Instance Method Details
#build_buttons(additional_buttons) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/tramway/admin/additional_buttons_builder.rb', line 4 def () = .is_a?(Hash) ? [] : .each do || = [:options] || {} concat( link_to( [:url], method: [:method], class: "btn btn-#{[:color]} btn-xs", ** ) do [:text] end ) end end |