Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActiveRecord::Base.connection_proxy.with_master do not work #5

Open
cyruscavalcante opened this issue Jul 8, 2010 · 1 comment
Open

Comments

@cyruscavalcante
Copy link

I try use this code below in my controller

around_filter(:only => [:create,:update]) { |c,a| ActiveRecord::Base.connection_proxy.with_master { a.call } }

and receive this error:
NoMethodError (undefined method `conection_proxy' for ActiveRecord::Base:Class):

I need change conection of 2 actions in my controller for read just at master. How I do?

@anoiaque
Copy link

Which rails version do you use?
It works fine with rails 3.0.+ but break with rails 3.1.+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants