diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-09-09 09:07:20 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-09-09 09:07:20 +0100 |
commit | b0181d36715c4e5258803c735b72a809b0f254a9 (patch) | |
tree | f7f496910e93213692b0ac295c08811ec03d1360 /app/helpers/application_helper.rb | |
parent | a9c7286807dca10872b5c659c216e1e2a754e9c3 (diff) | |
parent | e1d38525ae985d268a5d5478ed8122c5a5b19871 (diff) |
Merge origin/develop into local develop (including Nick's design changes)
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d12238582..a0f16dfaf 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -105,8 +105,12 @@ module ApplicationHelper method_name.sub(/\?$/, "") end - def form_tag_id(object_name, method_name) - return "#{sanitized_object_name(object_name.to_s)}_#{sanitized_method_name(method_name.to_s)}" + def form_tag_id(object_name, method_name, locale=nil) + if locale.nil? + return "#{sanitized_object_name(object_name.to_s)}_#{sanitized_method_name(method_name.to_s)}" + else + return "#{sanitized_object_name(object_name.to_s)}_#{sanitized_method_name(method_name.to_s)}__#{locale.to_s}" + end end end |