diff options
author | Eileen M. Uchitelle <eileencodes@users.noreply.github.com> | 2019-02-04 08:45:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-04 08:45:48 -0500 |
commit | f4aed53e440a63ef617b4634f160f4c512824870 (patch) | |
tree | 9a30d4f8aae3015ca647109e07a7aa6a42e27b81 /activerecord/lib/active_record/railtie.rb | |
parent | 84ff78be7a021b26fd8484c68065f5d464629745 (diff) | |
parent | 8d32346cdec04dd85ab682eeb9f4edfcd0c9ccef (diff) | |
download | rails-f4aed53e440a63ef617b4634f160f4c512824870.tar.gz rails-f4aed53e440a63ef617b4634f160f4c512824870.tar.bz2 rails-f4aed53e440a63ef617b4634f160f4c512824870.zip |
Merge pull request #35132 from eileencodes/allow-application-to-change-handler-names
Add ability to change the names of the default handlers
Diffstat (limited to 'activerecord/lib/active_record/railtie.rb')
-rw-r--r-- | activerecord/lib/active_record/railtie.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/railtie.rb b/activerecord/lib/active_record/railtie.rb index 017e279080..aac49a92b4 100644 --- a/activerecord/lib/active_record/railtie.rb +++ b/activerecord/lib/active_record/railtie.rb @@ -197,6 +197,7 @@ end_error # and then establishes the connection. initializer "active_record.initialize_database" do ActiveSupport.on_load(:active_record) do + self.connection_handlers = { writing_role => ActiveRecord::Base.default_connection_handler } self.configurations = Rails.application.config.database_configuration establish_connection end |