Sha256: bc5ac270c3dec094f76a936810a5af1c4d1793714ffa5890e6be0d878ebe9cf9
Contents?: true
Size: 304 Bytes
Versions: 1
Compression:
Stored size: 304 Bytes
Contents
# frozen_string_literal: true module Tramway::Admin::AdditionalButtonsBuilder def build_button(button) options = button[:options] || {} concat(link_to(button[:url], method: button[:method], class: "btn btn-#{button[:color]} btn-xs", **options) do button[:inner]&.call end) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-admin-2.1.0.1 | app/helpers/tramway/admin/additional_buttons_builder.rb |