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.8.1 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.8.0 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.7.2 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.7.1 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.7.0 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.9 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.8 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.7 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.6 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.5 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.4 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.3 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.2 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.1 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.6.0 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
actionview-6.0.0.beta1 lib/action_view/helpers/tags/checkable.rb
jets-1.5.10 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.9 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.8 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb
jets-1.5.7 vendor/rails/actionview/lib/action_view/helpers/tags/checkable.rb