#103 ✓moved_to_github
José Valim

add on option to magic states

Reported by José Valim | May 2nd, 2009 @ 04:43 PM

Hey Ben,

I'm building an application which when the user changes his e-mail by updating his account, another confirmation e-mail is sent and the account is marked as not confirmed.

Since magic states validation on session always occurs, the user is logged out right after he changes his e-mail.

I disabled the validation in my case and replaced by custom validations, but would be nice to have a option in magic states where I could say if the validation should occur on save, create or update, like on AR:

validate :validate_magic_states, :on => :create

Regards.

Comments and changes to this ticket

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.

New-ticket Create new ticket

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.

People watching this ticket

Attachments

Pages