diff options
| author | Genadi Samokovarov <gsamokovarov@gmail.com> | 2015-12-23 17:14:12 +0200 |
|---|---|---|
| committer | Genadi Samokovarov <gsamokovarov@gmail.com> | 2015-12-23 17:14:12 +0200 |
| commit | 3f93888808442c014eab31ba31151daeafa76f1f (patch) | |
| tree | e8a0da3191068e78da2234e8275100ae13b275cd /activemodel/lib/active_model/validations/exclusion.rb | |
| parent | c3989819eaa8ff0be852f86f83a221bb11ffbcc3 (diff) | |
| download | rails-3f93888808442c014eab31ba31151daeafa76f1f.tar.gz rails-3f93888808442c014eab31ba31151daeafa76f1f.tar.bz2 rails-3f93888808442c014eab31ba31151daeafa76f1f.zip | |
Fix edge case with ActionView::Template::Error reraise
When you re-raise an ActionView::Template::Error, the #cause can change.
You can see this behaviour with [nack]. Currently, `web-console` doesn't
run the console in the proper binding in the case of errors in the
views, because when we follow the `#cause` of the exception it is an
[`EOFError`][EOFError].
This also affects [pow] as it runs on [nack].
[nack]: https://github.com/josh/nack
[pow]: http://pow.cx/
[EOFError]: https://github.com/josh/nack/blob/d523cc870c0a11dcf349388a15adfecba9314f97/lib/nack/server.rb#L108
Diffstat (limited to 'activemodel/lib/active_model/validations/exclusion.rb')
0 files changed, 0 insertions, 0 deletions
