method

select_database

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: DatabaseSelector
select_database(request, &blk) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/middleware/database_selector.rb, line 59
        def select_database(request, &blk)
          context = context_klass.call(request)
          resolver = resolver_klass.call(context, options)

          if reading_request?(request)
            resolver.read(&blk)
          else
            resolver.write(&blk)
          end
        end
Register or log in to add new notes.