Sha256: dc636719a8f5fe2f77be10cb2ee6795948cfbe89740455f338822dc34252b9b9

Contents?: true

Size: 398 Bytes

Versions: 257

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

module ActionView
  module Helpers
    module Tags # :nodoc:
      module Checkable # :nodoc:
        def input_checked?(options)
          if options.has_key?("checked")
            checked = options.delete "checked"
            checked == true || checked == "checked"
          else
            checked?(value)
          end
        end
      end
    end
  end
end

Version data entries

257 entries across 243 versions & 17 rubygems

Version Path
jets-1.5.6 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.5 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.4 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.3 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.2 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.1 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.0 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
actionview-5.2.2 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.2.rc1 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.1.1 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.1 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.1.rc1 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.0 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.0.rc2 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.0.rc1 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.0.beta2 lib/action_view/helpers/tags/checkable.rb
actionview-5.2.0.beta1 lib/action_view/helpers/tags/checkable.rb