method
boolean_attribute
rails 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