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.27 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.26 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.25 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.23 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.22 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.21 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.20 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.19 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.18 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.17 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.16 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.15 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.14 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.13 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.12 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.11 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.10 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.9 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.8 app/helpers/workarea/admin/buttons_helper.rb
workarea-admin-3.5.7 app/helpers/workarea/admin/buttons_helper.rb