aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/middleware/database_selector/resolver.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-02-06 11:55:53 -0800
committerJohn Hawthorn <john@hawthorn.email>2019-02-06 11:55:53 -0800
commit6aaf01385e95376938275f484852b88fe84088b8 (patch)
tree92fc791e538f50c41386fa24426fe380aa2e427a /activerecord/lib/active_record/middleware/database_selector/resolver.rb
parent9cc463ed7b7be098602b72a98f72220ea6466ba2 (diff)
downloadrails-6aaf01385e95376938275f484852b88fe84088b8.tar.gz
rails-6aaf01385e95376938275f484852b88fe84088b8.tar.bz2
rails-6aaf01385e95376938275f484852b88fe84088b8.zip
Rename Session.build to Session.call
This is more consistent with Resolver, which has build called. This allows using a Proc instead of a class, which could be nice if you need to vary switching logic based on the request in a more ad-hoc way (ie. check if it is an API request).
Diffstat (limited to 'activerecord/lib/active_record/middleware/database_selector/resolver.rb')
0 files changed, 0 insertions, 0 deletions