On Mar 29, 2011, at 12:51 PM, kevinpfromnm wrote:

> It looks like there's a stub for handling that already in place
> 
>     # Is a new password (and confirmation) required? (i.e. signing up or 
> changing password)
>     def new_password_required?
>       lifecycle_changing_password? || changing_password?
>     end
> 
> Define a changing_password? method that does your test for password age.

Nope, that method is used in the validations (to ensure that, for instance, 
updating the email address on an account doesn't whine about 'password can't be 
blank', etc)

To the original question, I'd recommend just adding a before_filter to 
ApplicationController that checks current_user and redirects. 

--Matt Jones

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to