Sha256: 80f7eefd210e235d224dd456092f887c191da8508277ceda4f22eb7b6b0516c2

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 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 app/helpers/tramway/admin/additional_buttons_builder.rb