|
|
@ -19,7 +19,7 @@ class Report < ActiveRecord::Base |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def self.reporting_connection |
|
|
|
def self.reporting_connection |
|
|
|
ConnectionSwitcher.connection |
|
|
|
ConnectionSwitcher.connection || connection |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def self.chain_initializer |
|
|
|
def self.chain_initializer |
|
|
|