userstamp and authlogic (and possible workarounds?)
Opened this issue · 0 comments
nfstern commented
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?