aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing
diff options
context:
space:
mode:
authorJulian Vargas <julianvargasalvarez@gmail.com>2013-05-12 15:04:01 -0500
committerJulian Vargas <julianvargasalvarez@gmail.com>2013-05-12 16:33:45 -0500
commitc43ca06ca091fc09e2c86bb051ac92b648f12b64 (patch)
tree0e13c8f14d9ebb1c1f8cae1dba4f35fe02099d48 /actionpack/lib/action_dispatch/testing
parent2519fb0e6d468b45e6d12157d436540c9ef080a0 (diff)
downloadrails-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