aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-02-21 12:48:45 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-02-21 12:48:45 -0300
commitfdcd7c0f2ee264219c322e5cb8f880ca48e14d5f (patch)
treeb72194155e6c897de7d9a9db5c532b99939651bb
parenta0d84227c2aa4f509abcfa81880dc1cd7cfa9d05 (diff)
downloadrails-fdcd7c0f2ee264219c322e5cb8f880ca48e14d5f.tar.gz
rails-fdcd7c0f2ee264219c322e5cb8f880ca48e14d5f.tar.bz2
rails-fdcd7c0f2ee264219c322e5cb8f880ca48e14d5f.zip
Change tabs to spaces in form options helper [ci skip]
-rw-r--r--actionpack/lib/action_view/helpers/form_options_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_options_helper.rb b/actionpack/lib/action_view/helpers/form_options_helper.rb
index 623c45fa13..f63a951c33 100644
--- a/actionpack/lib/action_view/helpers/form_options_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -508,9 +508,9 @@ module ActionView
convert_zones = lambda { |list| list.map { |z| [ z.to_s, z.name ] } }
if priority_zones
- if priority_zones.is_a?(Regexp)
+ if priority_zones.is_a?(Regexp)
priority_zones = model.all.find_all {|z| z =~ priority_zones}
- end
+ end
zone_options += options_for_select(convert_zones[priority_zones], selected)
zone_options += "<option value=\"\" disabled=\"disabled\">-------------</option>\n"