diff options
author | Julian Vargas <julianvargasalvarez@gmail.com> | 2013-05-12 15:04:01 -0500 |
---|---|---|
committer | Julian Vargas <julianvargasalvarez@gmail.com> | 2013-05-12 16:33:45 -0500 |
commit | c43ca06ca091fc09e2c86bb051ac92b648f12b64 (patch) | |
tree | 0e13c8f14d9ebb1c1f8cae1dba4f35fe02099d48 /actionpack/lib/action_dispatch/testing | |
parent | 2519fb0e6d468b45e6d12157d436540c9ef080a0 (diff) | |
download | rails-c43ca06ca091fc09e2c86bb051ac92b648f12b64.tar.gz rails-c43ca06ca091fc09e2c86bb051ac92b648f12b64.tar.bz2 rails-c43ca06ca091fc09e2c86bb051ac92b648f12b64.zip |
Code cleanup for ActionDispatch::Flash#call
The nested `if` was replaced by using `presence` which takes account for
the given hash when it is `nil` or when it is empty. The `else` was
removed because what it was doing was to assign to `env[KEY]` the
value it already had.
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
0 files changed, 0 insertions, 0 deletions