Closed thaitoanit closed 6 years ago
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 methodestablish_fresh_connection for ApplicationController:Class: `
establish_fresh_connection :replica
class ApplicationController < ActionController::Base
NoMethodError - undefined method
Please help me :(
establish_fresh_connection is defined to ActiveRecord::Base class. You don't need to use establish_fresh_connection in ApplicationController.
establish_fresh_connection
ActiveRecord::Base
ApplicationController
Hi man, I use this gem on rails 5
After i try add
establish_fresh_connection :replica
inclass ApplicationController < ActionController::Base
. My app return errorNoMethodError - undefined method
establish_fresh_connection for ApplicationController:Class: `Please help me :(