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

userstamp and authlogic (and possible workarounds?) #3

Open
nfstern opened this issue Jan 19, 2010 · 0 comments
Open

userstamp and authlogic (and possible workarounds?) #3

nfstern opened this issue Jan 19, 2010 · 0 comments

Comments

@nfstern
Copy link

nfstern commented Jan 19, 2010

I'm using Authlogic as it seems to be a popular and easy to implement authentication solution.

However, current_user is defined as a private method in the application_controller, or at least it's defined that way in the example and the Railscast.

Anyway, that seems to cause issues for userstamp. I suppose one way to fix this would be to make it a public method?

Also, another thing that seems to work is to do this:
def set_stamper
#User.stamper = self.current_user
User.stamper = current_user
end

in the userstamp.rb file.

Any thoughts on which solution is better or if there's another way superior to either of those?

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

1 participant