You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: