Jacques Crocker
6d31e368bf
Use persisted? instead of new_record?
...
In order to be more ActiveModel compliant, lets use persisted? whereever we can. Particularly for datamapper, new_record? causes api warnings. Better to stick to the ActiveModel api I think.
2010-03-28 20:53:13 -07:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
José Valim
ac742e3271
Clean up lockable and class methods API.
2010-03-10 16:13:54 +01:00
José Valim
e6e66481b8
Got all tests in test/models and failure app ones passing. 369 tests, 805 assertions, 13 failures, 2 errors.
2010-02-16 17:00:36 +01:00
José Valim
35a8d13369
Tests passing for ActiveRecord and MongoMapper.
2009-12-21 21:10:23 +01:00
José Valim
9a658d5e74
Added skip_confirmation! It skips confirmation token generation, e-mail sending and automatically sets confirmed_at.
2009-12-15 00:30:28 +01:00
José Valim
30d6d37bab
Refactor tests a little bit and gain more speed (from 12s to 9s in my machine).
2009-11-24 23:19:12 -02:00
José Valim
4c7081c2e3
More Datamapper compatibility.
2009-11-24 18:02:36 -02:00
Carlos A. da Silva
9643a5fa6d
Removing attr_accessible.
2009-10-22 20:18:16 -02:00
Carlos A. da Silva
29ea916e9f
Fix clearing reset password token while reseting password.
2009-10-18 09:54:53 -02:00
Carlos A. da Silva
75e98d3041
Separating perishable token into confirmation and reset_password tokens. Adding confirmation_sent_at attribute.
2009-10-18 09:14:52 -02:00
Carlos A. da Silva
3700e9979c
Clearing perishable token when confirming or reseting password.
2009-10-15 17:36:44 -03:00
Carlos A. da Silva
198167d978
Removing default mapping and Updating tests at all
2009-10-10 18:07:25 -03:00
Carlos A. da Silva
095f7026cb
Refactoring recoverable tests to access database only when needed.
2009-10-09 07:36:12 -03:00
Carlos A. da Silva
97ae1795bd
Recoverable class method reset_password should use a bang!
2009-10-09 07:36:12 -03:00
Carlos A. da Silva
ba7e74e1a1
Refactoring confirmable and recoverable to use the same default find method by perishable token.
2009-10-09 07:36:12 -03:00
Carlos A. da Silva
cf1ea9ab86
Cleaning up recoverable methods, changing to use a hash of options instead of default parameters.
2009-10-09 07:36:12 -03:00
Carlos A. da Silva
7ce49cbbe8
Configuring session and password controllers as engine, and getting integration tests from devise example app.
2009-10-09 07:36:12 -03:00
Carlos A. da Silva
3655fe9096
Restructuring directories for models and mailers.
2009-09-20 10:35:26 -03:00