Module SeamlessDatabasePool::ControllerFilter::ClassMethods
In: lib/seamless_database_pool/controller_filter.rb

Methods

Public Instance methods

Call this method to set up the connection types that will be used for your actions. The configuration is given as a hash where the key is the action name and the value is the connection type (:master, :persistent, or :random). You can specify :all as the action to define a default connection type. You can also specify the action names in an array to easily map multiple actions to one connection type.

The configuration is inherited from parent controller classes, so if you have default behavior, you should simply specify it in ApplicationController to have it available globally.

[Validate]