Skip to content

Commit

Permalink
Added a warning for users who are integrating Refinery into an existing
Browse files Browse the repository at this point in the history
app that has an Authlogic-created users table.
  • Loading branch information
TylerRick authored and parndt committed Mar 14, 2010
1 parent 4c1ffa7 commit 6e7efc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vendor/plugins/authentication/app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ class User < ActiveRecord::Base
c.perishable_token_valid_for 10.minutes

# http://www.binarylogic.com/2008/11/23/tutorial-easily-migrate-from-restful_authentication-to-authlogic/
# Unfortunately, this seems to cause problems when you add Refinery to an app that already had
# an Authlogic-created users table. You may need to comment these 2 lines out if that is the case.
c.act_like_restful_authentication = true
c.transition_from_restful_authentication = true

Expand Down Expand Up @@ -66,4 +68,4 @@ def password_required?
crypted_password.blank? || !password.blank?
end

end
end

0 comments on commit 6e7efc8

Please sign in to comment.