José Valim
22e1fa0cb9
Small cleanup.
2010-03-30 00:29:57 +02:00
Josh Kalderimis
a6a018253e
minor change to content type checking to make it more flexible when utf8 is returned
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-30 00:23:46 +02:00
José Valim
7d14f0bbb9
Allow several authentications to share a common path.
2010-03-29 23:44:47 +02:00
José Valim
65b8908960
Create authenticatable base model and strategy.
2010-03-29 20:52:48 +02:00
José Valim
1c5d4771ff
Initial work on making the authentication stack more flexible.
2010-03-29 16:13:19 +02:00
José Valim
604b7ef61c
Move http authenticatable response to failure app.
2010-03-29 15:16:14 +02:00
Jacques Crocker
1c39590e20
Devise / DataMapper updates
...
allows devise to work with the upcoming dm-validation changes
2010-03-28 20:53:22 -07:00
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
2a082f3e4c
Fix some unlockable bugs.
2010-03-28 23:09:28 +02:00
José Valim
033db1ca7c
Do not depend on silence_missing_strategies! anymore. This speeds up strategies matching because we don't need to check if the model duck types to the strategy and it doesn't trigger uneeded strategies.
2010-03-28 14:55:05 +02:00
José Valim
ea71be8d2a
More compatibility with Rails master.
2010-03-28 07:15:52 +02:00
Jacques Crocker
6bcf18b04f
Mongoid support cleanup
...
moving test specific == override part of the test models and not part of the Compatibility module included in all Mongoid docs. Made sure that nothing in devise itself uses this == between 2 different models, its purely for assert_equal
2010-03-27 16:16:36 -07:00
Jacques Crocker
bb504e08aa
Initial Datamapper test suite
...
Test suite runs, however there's still some failing tests. This allows us to at least have a working test suite so they can fix these datamapper spec failures individually.
2010-03-27 16:15:23 -07:00
Jacques Crocker
e127463ac8
Adding Mongoid 2.0 Support, Removing MongoMapper for now
2010-03-26 13:37:38 -07:00
José Valim
bd4b29c0fd
sign_in_count shoud default to zero.
2010-03-26 12:56:24 +01:00
Carlos Antonio da Silva
a5ba2ac1a8
Use prepend_before_filter in require_no_authentication.
...
We need to be sure require_no_authentication runs before other user filters that may call some Devise helper (ie current_xxx).
Conflicts:
app/controllers/devise/passwords_controller.rb
app/controllers/devise/registrations_controller.rb
app/controllers/devise/sessions_controller.rb
app/controllers/devise/unlocks_controller.rb
lib/devise/controllers/internal_helpers.rb
test/rails_app/app/controllers/application_controller.rb
2010-03-26 08:26:51 -03:00
José Valim
ca4e09390e
Compatibility with Ruby 1.9.1 and 1.9.2.
2010-03-26 11:27:19 +01:00
Andreas Haller
5c19605d6f
Fixed test: calling Mail::Body#encoded to get a String (Rails 3)
...
From Rails' CHANGELOG
… Mail.body returns a Mail::Body class object, need to call #encoded or #decoded to get the string you want.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-26 11:00:46 +01:00
José Valim
ae729aedc3
Allow devise to work with association proxies.
2010-03-26 10:19:31 +01:00
José Valim
12b64c691f
Add support to multipart e-mails (just put them in your mailers folder) and headers customization by simply defining headers_for in your model.
2010-03-26 10:01:24 +01:00
Josh Kalderimis
4d3a3ceb43
added test to confirm order in ALL is being adhered to when adding and including module in model
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-26 09:31:25 +01:00
José Valim
28a6be456a
Require files before monkey patching them.
2010-03-23 16:28:17 +01:00
José Valim
3f0bae1968
Allow to give :skip in devise_for to skip routes for an specific controller.
2010-03-12 09:54:57 +01:00
José Valim
ac742e3271
Clean up lockable and class methods API.
2010-03-10 16:13:54 +01:00
José Valim
829c85631b
Aim for Rails 3.0.0.beta1 compatibility. A few issues are still pending with Warden.
2010-03-10 15:00:12 +01:00
José Valim
038627574c
Keep modules definition in a different file.
2010-03-03 12:03:43 +01:00
José Valim
e03e137c35
Update warden which fixes a security issue.
2010-02-23 19:47:45 +01:00
Jacques Crocker
4a51394af5
MongoMapper test suite fixes
2010-02-19 20:32:31 +08:00
José Valim
1c6f18cb8b
Since Devise::FailureApp is now a metal, we can get rid of this default_url_options stuff.
2010-02-19 10:13:53 +01:00
José Valim
4a0b9c663a
Use metal for Devise::FailureApp. \m/
2010-02-19 09:52:12 +01:00
José Valim
f0eb4348f3
Deprecate Devise.orm. This allows you to use several ORMs with Devise and reduces the required API.
2010-02-19 09:26:17 +01:00
José Valim
3ac399f2ff
Returns the proper response body based on the rquest for 401.
2010-02-18 19:38:13 +01:00
José Valim
968ebe1b15
Uses the same content type as request on http authenticatable 401 responses
2010-02-17 21:40:01 +01:00
José Valim
f6cc219210
Devise now allows you to have custom controlleers. Check the README for more information.
2010-02-17 13:15:19 +01:00
José Valim
02e8c04cde
Update views generator and now have scoped views.
2010-02-17 12:26:54 +01:00
José Valim
b4bbd3b892
Get all tests passing for ActiveRecord and allow MongoMapper tests to run.
2010-02-17 10:11:43 +01:00
José Valim
33941d1f62
All tests passing (except two which are errors in Rails). Now generators and initialization process.
2010-02-16 21:23:58 +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
d466849c57
More tests passing for Rails 3 compatibility. 369 tests, 788 assertions, 34 failures, 16 errors.
2010-02-16 16:11:30 +01:00
José Valim
b3e11c5aca
Got another bunch of tests passing on Rails 3. 369 tests, 731 assertions, 33 failures, 53 errors.
2010-02-16 14:57:10 +01:00
José Valim
766316b5e7
Got tests running on Rails 3: 369 tests, 486 assertions, 45 failures, 124 errors.
2010-02-16 14:31:49 +01:00
José Valim
bdacffab58
Make HttpAuthenticatable opt-in.
2010-02-15 14:11:33 +01:00
José Valim
1b6f1b9752
Add registerable integration tests.
2010-02-09 00:08:57 +01:00
José Valim
732e31528e
More changes in update_with_password.
2010-02-08 23:14:03 +01:00
José Valim
d7db5b1eea
More work on edit.
2010-02-08 20:38:47 +01:00
José Valim
2761a75437
Refactor on routes.
2010-02-08 20:25:20 +01:00
José Valim
9798ad7455
Allow scoped views to be customized per controller/mailer class.
2010-02-08 17:33:22 +01:00
José Valim
54cd2cc0e8
Use _ instead of .
2010-02-08 17:15:12 +01:00
Carlos Antonio da Silva
445070f6ec
Use sign_up instead of registration in routes. Fix issue with users being signed in while attempting to sign up with info from already existing user. Also fix signed up flash.
2010-02-08 11:03:15 -02:00
Carlos Antonio da Silva
9856646fac
Merge with master
2010-02-06 09:24:00 -02:00