aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tag_helper.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-01-12 20:11:31 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-01-12 22:29:56 -0200
commitc4c1c252e27f18daf4e26d2003077ae005489909 (patch)
tree78b420a4d217e0b76695e5673bff70edc1da32c7 /actionpack/lib/action_view/helpers/tag_helper.rb
parentb01fd08a8c51b2efea242b93619508707ac0725d (diff)
downloadrails-c4c1c252e27f18daf4e26d2003077ae005489909.tar.gz
rails-c4c1c252e27f18daf4e26d2003077ae005489909.tar.bz2
rails-c4c1c252e27f18daf4e26d2003077ae005489909.zip
Remove value argument from boolean option
Diffstat (limited to 'actionpack/lib/action_view/helpers/tag_helper.rb')
-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