I catched bug then activation code was generated twice, and user was
not able to activate his account because sent activation code was
rewritten.
The reason was that both aasm_roles.rb and stateful_roles.rb were
loaded. After deleting one of them all works fine
On 27 июл, 05:37, Brian Cardarella
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> I cloned from github, can the generator with the --include-activation
> option
>
> Now when I go to create a new user account the following method in
> app/models/user_observer.rb fails:
>
> def after_save(user)
>
> UserMailer.deliver_activation(user) if user.recently_activated?
>
> end
>
> The model method ''.recently_acticated?'' does not exist in
the generated
> user model. After searching around I can see that older versions of this
> plug-in included this method but I have to assume it was removed for a
> reason. So I would like to try to get it first working the way the
> author intended before I start modifying. Any ideas?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---