Error undefined method `establish_fresh_connection' for ApplicationController:Class
thaitoanit opened this issue · 1 comments
thaitoanit commented
Hi man,
I use this gem on rails 5
After i try add establish_fresh_connection :replica
in class ApplicationController < ActionController::Base
. My app return error NoMethodError - undefined method
establish_fresh_connection for ApplicationController:Class: `
Please help me :(
tsukasaoishi commented
establish_fresh_connection
is defined to ActiveRecord::Base
class.
You don't need to use establish_fresh_connection
in ApplicationController
.