aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/routing_url_for.rb
diff options
context:
space:
mode:
authoreileencodes <eileencodes@gmail.com>2019-08-02 12:04:38 -0400
committereileencodes <eileencodes@gmail.com>2019-08-02 12:10:32 -0400
commitf2de448106ca3bb947dc88f96ca7d81d37b5be9a (patch)
tree4a12db093039c6d9546d37668a53996e80e54e61 /actionview/lib/action_view/routing_url_for.rb
parentf3c68c59ed57302ca54f4dfad0e91dbff426962d (diff)
downloadrails-f2de448106ca3bb947dc88f96ca7d81d37b5be9a.tar.gz
rails-f2de448106ca3bb947dc88f96ca7d81d37b5be9a.tar.bz2
rails-f2de448106ca3bb947dc88f96ca7d81d37b5be9a.zip
Add ability to unset preventing writes
Previously if an app attempts to do a write inside a read request it will be impossilbe to switch back to writing to the primary. This PR adds an argument to the `while_preventing_writes` so that we can make sure to turn it off if we're doing a write on a primary. Fixes #36830 Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>
Diffstat (limited to 'actionview/lib/action_view/routing_url_for.rb')
0 files changed, 0 insertions, 0 deletions