aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2019-07-29 12:27:48 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2019-07-29 12:28:36 -0300
commit17b8cde6d16cee9a7b7d5daf1ef79d8facfcfbf6 (patch)
treec37e77e5eebdaf82c5bfc282135f117bf7bc60f3 /activerecord
parent2e6d9af6c8b9900481dabfca685b3e335c2f27aa (diff)
downloadrails-17b8cde6d16cee9a7b7d5daf1ef79d8facfcfbf6.tar.gz
rails-17b8cde6d16cee9a7b7d5daf1ef79d8facfcfbf6.tar.bz2
rails-17b8cde6d16cee9a7b7d5daf1ef79d8facfcfbf6.zip
Call raise with parentheses like a normal method call with arguments
Using `(raise FooError, "error")` is like forcing a "new scope" around the `raise` call, it's simpler to just wrap the `raise` arguments with parentheses just like any other method call would.
Diffstat (limited to 'activerecord')
0 files changed, 0 insertions, 0 deletions