diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-04 18:33:24 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-04 18:33:24 -0300 |
commit | 73f2e25ac5b63f52b175004176a8f32a0fdef908 (patch) | |
tree | 789886a4279337830e1d353fb9c077e658740ab7 /activesupport | |
parent | b4b0d9d1c1b2c0012dbd5186341b3def2e2c9052 (diff) | |
download | rails-73f2e25ac5b63f52b175004176a8f32a0fdef908.tar.gz rails-73f2e25ac5b63f52b175004176a8f32a0fdef908.tar.bz2 rails-73f2e25ac5b63f52b175004176a8f32a0fdef908.zip |
No need the else clause
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/object/to_param.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/to_param.rb b/activesupport/lib/active_support/core_ext/object/to_param.rb index 0611eb819d..e65fc5bac1 100644 --- a/activesupport/lib/active_support/core_ext/object/to_param.rb +++ b/activesupport/lib/active_support/core_ext/object/to_param.rb @@ -54,8 +54,6 @@ class Hash collect do |key, value| unless (value.is_a?(Hash) || value.is_a?(Array)) && value.empty? value.to_query(namespace ? "#{namespace}[#{key}]" : key) - else - nil end end.compact.sort! * '&' end |