Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixing missing method recently_activated for --includes-activation me…

…thod (method is included if using stateful)
  • Loading branch information...
commit 9a5f50690a204922328fc7773a0317d82cbd919d 1 parent fc5486d
@neshmi neshmi authored committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 generators/authenticated/templates/model.rb
View
4 generators/authenticated/templates/model.rb
@@ -45,6 +45,10 @@ def recently_activated?
def active?
# the existence of an activation code means they have not activated yet
activation_code.nil?
+ end
+
+ def recently_activated?

This is actually a duplicate of the same action on line 38. I don't know if this is what purist was referring to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ @activated
end<% end %>
# Authenticates a user by their login name and unencrypted password. Returns the user or nil.

3 comments on commit 9a5f506

@purist

hi. i'm trying out this restful-authentication, thanks for your work on this. still testing out my install, i had a little trouble at first and i thought i'd post my findings.

i ran into method_missing for recently_activated when creating a new user ( w/ activate and aasm ). while tracking down the problem i noticed that this change was already added by oboxodo July 05, 2008.

depending on your intentions, there's either a bug here OR a bug on line 8 of generators/authenticated/templates/observer.rb and i'll add a comment there about it.

@technoweenie

Please file a pull request. I haven't use this library in years :)

@OmriShiv

Filed

Please sign in to comment.
Something went wrong with that request. Please try again.