Sha256: dc636719a8f5fe2f77be10cb2ee6795948cfbe89740455f338822dc34252b9b9

Contents?: true

Size: 398 Bytes

Versions: 255

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

255 entries across 242 versions & 17 rubygems

Version Path
actionview-7.1.3.4 lib/action_view/helpers/tags/checkable.rb
actionview-7.0.8.4 lib/action_view/helpers/tags/checkable.rb
actionview-6.1.7.8 lib/action_view/helpers/tags/checkable.rb
actionview-7.2.0.beta1 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.3.2 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.3.1 lib/action_view/helpers/tags/checkable.rb
actionview-7.0.8.1 lib/action_view/helpers/tags/checkable.rb
actionview-6.1.7.7 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.3 lib/action_view/helpers/tags/checkable.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionview-7.0.3.1/lib/action_view/helpers/tags/checkable.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionview-7.0.2.3/lib/action_view/helpers/tags/checkable.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/actionview-6.1.6.1/lib/action_view/helpers/tags/checkable.rb
actionview-7.1.2 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.1 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.0 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.0.rc2 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.0.rc1 lib/action_view/helpers/tags/checkable.rb
actionview-7.1.0.beta1 lib/action_view/helpers/tags/checkable.rb
actionview-7.0.8 lib/action_view/helpers/tags/checkable.rb
actionview-7.0.7.2 lib/action_view/helpers/tags/checkable.rb