method
boolean_attribute
v1.2.6 -
Show latest stable
- Class:
ActionView::Helpers::TagHelper
boolean_attribute(options, attribute)private
No documentation available.
# File actionpack/lib/action_view/helpers/tag_helper.rb, line 93
def boolean_attribute(options, attribute)
options[attribute] ? options[attribute] = attribute : options.delete(attribute)
end