Skip to content

Commit

Permalink
Fix previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
DAddYE committed Mar 12, 2012
1 parent 9c8deed commit 30e789e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions padrino-helpers/lib/padrino-helpers/tag_helpers.rb
Expand Up @@ -247,13 +247,13 @@ def nested_values(attribute, hash)
#
def parse_data_options(tag, options)
return if options.nil?
options = options.dup
parsed_options = options.dup
options.each do |k, v|
next if !DATA_ATTRIBUTES.include?(k) || (tag.to_s == 'form' && k == :method)
options["data-#{k}"] = options.delete(k)
options[:rel] = 'nofollow' if k == :method
parsed_options["data-#{k}"] = parsed_options.delete(k)
parsed_options[:rel] = 'nofollow' if k == :method
end
options
parsed_options
end
end # TagHelpers
end # Helpers
Expand Down

0 comments on commit 30e789e

Please sign in to comment.