diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-08 16:39:16 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-08 16:39:16 -0700 |
commit | 1b73d53a1c45933017dd10d2edc506a4982c4c0d (patch) | |
tree | 9fe59e46b658cd615bdc7ec3fb1e08630b26d1ad /actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | |
parent | dc1b937db780155089fce522f03d340e62f5df36 (diff) | |
download | rails-1b73d53a1c45933017dd10d2edc506a4982c4c0d.tar.gz rails-1b73d53a1c45933017dd10d2edc506a4982c4c0d.tar.bz2 rails-1b73d53a1c45933017dd10d2edc506a4982c4c0d.zip |
eliminate assignment in conditional
The method we called already has the conditional we need. Just add an
else block so that we don't need two tests.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/polymorphic_routes.rb')
0 files changed, 0 insertions, 0 deletions