aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/tag_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/tag_helper.rb b/actionpack/lib/action_view/helpers/tag_helper.rb
index 37a3fa290e..e5fd11e021 100644
--- a/actionpack/lib/action_view/helpers/tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/tag_helper.rb
@@ -138,7 +138,7 @@ module ActionView
attrs << data_tag_option(k, v, escape)
end
elsif BOOLEAN_ATTRIBUTES.include?(key)
- attrs << boolean_tag_option(key, value) if value
+ attrs << boolean_tag_option(key) if value
elsif !value.nil?
attrs << tag_option(key, value, escape)
end
@@ -152,7 +152,7 @@ module ActionView
%(data-#{k.to_s.dasherize}="#{v}")
end
- def boolean_tag_option(key, value)
+ def boolean_tag_option(key)
%(#{key}="#{key}")
end