Sha256: 77c288606e44a61a52711c99f961d4e728df2f930579ea8a13a17732ed4952ee

Contents?: true

Size: 342 Bytes

Versions: 24

Compression:

Stored size: 342 Bytes

Contents

module Workarea
  module Admin
    module ButtonsHelper
      def button_tag(*args)
        options = args.reverse.detect { |a| a.is_a?(Hash) }
        options ||= args.append({}).last

        options[:data] ||= {}
        options[:data][:disable] = true unless options[:data].key?(:disable)
        super(*args)
      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
workarea-admin-3.5.6 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.5 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.4 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.3 app/helpers/workarea/admin/buttons_helper.rb