Sha256: 45a2cdeb635b41d9f50546d8a9de19686dd02266dbba9791a878858ce0a91ea5

Contents?: true

Size: 383 Bytes

Versions: 180

Compression:

Stored size: 383 Bytes

Contents

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

Version data entries

180 entries across 175 versions & 13 rubygems

Version Path
actionview-4.1.14.1 lib/action_view/helpers/tags/checkable.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/tags/checkable.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/actionview-4.1.13/lib/action_view/helpers/tags/checkable.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/tags/checkable.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/actionview-4.1.13/lib/action_view/helpers/tags/checkable.rb
actionview-5.0.0.beta1 lib/action_view/helpers/tags/checkable.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionview-4.1.13/lib/action_view/helpers/tags/checkable.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/actionview-4.2.4/lib/action_view/helpers/tags/checkable.rb
actionview-4.1.14 lib/action_view/helpers/tags/checkable.rb
actionview-4.2.5 lib/action_view/helpers/tags/checkable.rb
actionview-4.2.5.rc2 lib/action_view/helpers/tags/checkable.rb
actionview-4.1.14.rc2 lib/action_view/helpers/tags/checkable.rb
actionview-4.2.5.rc1 lib/action_view/helpers/tags/checkable.rb
actionview-4.1.14.rc1 lib/action_view/helpers/tags/checkable.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/actionview-4.2.4/lib/action_view/helpers/tags/checkable.rb
actionview-4.2.4 lib/action_view/helpers/tags/checkable.rb
actionview-4.1.13 lib/action_view/helpers/tags/checkable.rb
actionview-4.2.4.rc1 lib/action_view/helpers/tags/checkable.rb
actionview-4.1.13.rc1 lib/action_view/helpers/tags/checkable.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/actionview-4.2.3/lib/action_view/helpers/tags/checkable.rb