lib/hyphenify/action_view/base.rb in hyphenify-0.0.6 vs lib/hyphenify/action_view/base.rb in hyphenify-0.0.7
- old
+ new
@@ -7,10 +7,10 @@
alias_method_chain :tag_options, :hyphen
end
private
- def tag_options_with_hyphen(options, escape = true)
+ def tag_options_with_hyphen(options, escape=true)
options.stringify_keys!
%w[id class for].each { |key| options[key] = options[key].to_s.dasherize if options.has_key? key }
tag_options_without_hyphen options, escape
end