123456789_123456789_123456789_123456789_123456789_

Module: ActionView::Helpers::Tags::Checkable

Do not use. This module is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Included In:
Defined in: actionview/lib/action_view/helpers/tags/checkable.rb

Instance Method Summary

Instance Method Details

#input_checked?(options) ⇒ Boolean

[ GitHub ]

  
# File 'actionview/lib/action_view/helpers/tags/checkable.rb', line 7

def input_checked?(options)
  if options.has_key?("checked")
    checked = options.delete "checked"
    checked == true || checked == "checked"
  else
    checked?(value)
  end
end