lib/hyphenify/action_view/base.rb in hyphenify-0.0.9 vs lib/hyphenify/action_view/base.rb in hyphenify-0.1.0
- old
+ new
@@ -9,11 +9,15 @@
private
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
+ %w[id class for].each do |key|
+ if options.has_key? key
+ options[key] = options[key].to_s.dasherize
+ end
+ end
+ tag_options_without_hyphen options, escape
end
end
end
end