From c4c1c252e27f18daf4e26d2003077ae005489909 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Thu, 12 Jan 2012 20:11:31 -0200 Subject: Remove value argument from boolean option --- actionpack/lib/action_view/helpers/tag_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/lib') 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 -- cgit v1.2.3