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
actionview-7.0.8.5 lib/action_view/helpers/tags/checkable.rb
actionview-8.0.0.beta1 lib/action_view/helpers/tags/checkable.rb
omg-actionview-8.0.0.alpha9 lib/action_view/helpers/tags/checkable.rb
omg-actionview-8.0.0.alpha8 lib/action_view/helpers/tags/checkable.rb
omg-actionview-8.0.0.alpha7 lib/action_view/helpers/tags/checkable.rb
omg-actionview-8.0.0.alpha4 lib/action_view/helpers/tags/checkable.rb
omg-actionview-8.0.0.alpha3 lib/action_view/helpers/tags/checkable.rb
omg-actionview-8.0.0.alpha2 lib/action_view/helpers/tags/checkable.rb
omg-actionview-8.0.0.alpha1 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.4 lib/action_view/helpers/tags/checkable.rb
actionview-7.2.1 lib/action_view/helpers/tags/checkable.rb
actionview-7.2.0 lib/action_view/helpers/tags/checkable.rb
actionview-7.2.0.rc1 lib/action_view/helpers/tags/checkable.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionview-7.0.8.4/lib/action_view/helpers/tags/checkable.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/actionview-7.1.3.4/lib/action_view/helpers/tags/checkable.rb
actionview-7.2.0.beta3 lib/action_view/helpers/tags/checkable.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/actionview-7.0.5.1/lib/action_view/helpers/tags/checkable.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/actionview-7.0.5.1/lib/action_view/helpers/tags/checkable.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/actionview-7.0.5.1/lib/action_view/helpers/tags/checkable.rb
katalyst-govuk-formbuilder-1.9.2 vendor/bundle/ruby/3.3.0/gems/actionview-7.1.3.4/lib/action_view/helpers/tags/checkable.rb