
before_persisting problem
Reported by Craig Paterson | June 2nd, 2009 @ 06:32 AM
I tried to add a timeout to my user session as it was in the documentation, but a get a method not found error. Tried including a couple of modules to see if that helped, to no avail. Happens in here:
module Timeout
def self.included(klass)
klass.class_eval do
extend Config
include InstanceMethods
before_persisting :reset_stale_state
after_persisting :enforce_timeout
attr_accessor :stale_record
end
end
Comments and changes to this ticket
-
-
Ben Johnson June 3rd, 2009 @ 03:53 AM
I'm unclear as to what you are doing. before_persisting is definitely working because I used it in a few spots throughout authlogic and have tests for it.
Sorry if that isn't helpful, I'm just a little lost as to what you are trying to do.
-
Ben Johnson June 20th, 2009 @ 04:41 AM
- State changed from open to hold
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.