Trevor Turk
2939a61a49
documentation tweaks for extend_remember_period
2010-07-24 01:06:10 +08:00
Stefan Huber
5aeb8cf1cf
small documentation fix
2010-07-23 01:33:08 +08:00
José Valim
2602ef41cf
Do not add unlock routes unless unlock strategy is email or both, closes #373
2010-07-12 07:24:21 +02:00
José Valim
bd0e2a3180
devise_for now accepts a block. All routes inside the block uses the scope defined by devise_for.
...
You are now allowed to do:
devise_for :users do
# Non conventional sign_in route
get "/sign_in" => "devise/sessions#new"
end
And it should work as expected.
2010-07-07 10:51:14 +02:00
Carlos Antonio da Silva
77b7692b57
Regenerate devise initializar and get rid of some deprecation warnings from Devise and Rails.
2010-07-06 08:40:32 -03:00
José Valim
7774accb6c
Remove data_mapper support.
...
Devise 1.1.0 will be released soon. This new version will support activerecord and mongoid as default ORMs. From now on, Devise will prefer ORM extensions as gems since this is the best way to handle dependencies.
For example, to allow Devise to work with Datamapper, it requires at least activemodel, dm-rails and dm-timestamps. If the ORM support comes from Devise gem, we cannot add dm-rails and dm-timestamps as dependencies, relying on the developer and documentation to find these out and install them.
Other ORMs may still be added to Devise, as long as they are supported by the community, extend Devise test suite to have all tests passing and they necessarily use ActiveModel::Validations.
2010-07-04 17:22:57 +02:00
José Valim
7a1adbb61e
Improve integration of devise with new router scope.
2010-07-04 11:53:12 +02:00
José Valim
18cccae82f
Update bundler, Rails and improve tests for previous commit.
2010-07-02 08:12:00 +02:00
Trevor Turk
8824b767f3
remember_across_browsers option for rememberable module
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-06-30 12:42:42 +02:00
José Valim
2103a673f0
Allow devise_for to be scoped with the scope method. This commit requires latest commits in Rails master.
2010-06-30 12:41:44 +02:00
José Valim
78e7642bd2
Tests green again.
2010-06-29 21:41:34 +02:00
José Valim
4b272767d6
Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts, closes #341 .
2010-06-29 11:52:10 +02:00
José Valim
7a45043bc8
Be more friendly if the user goes ahead and adds devise_for :users before defining the model.
2010-06-24 16:51:30 +02:00
Rob Holland
ad63e25c89
config.load_paths is now config.autoload_paths
2010-06-24 19:28:34 +08:00
Jared Morgan
e90732c8c3
Remove #save! method from test DM User model
...
DM has a #save! method, so it's no longer needed. Having it call #save
caused #valid? to be called where tests were expecting validations to be
skipped.
2010-06-23 18:38:39 +08:00
snusnu
4e2cd157c1
Specs surely don't pass, but they run at least!
2010-06-19 17:30:10 -07:00
José Valim
70a429d9ff
Split tests files a bit.
2010-06-13 12:11:15 +02:00
José Valim
f16d01869a
Rename apply_schema to apply_devise_schema and refactor Mongoid part a bit.
2010-06-13 11:48:45 +02:00
Lloyd Pick
f0c0f5f11b
fixed a few spelling/grammar mistakes
2010-05-28 20:24:39 +08:00
Alexander Uvarov
6ff77c9fdf
Add merb-auth like router helper
2010-05-25 05:51:32 +08:00
José Valim
bff64a6291
Added navigational formats to specify when it should return a 302 and when a 401, closes #234 and #249 .
2010-05-16 19:13:38 +02:00
José Valim
f1bbce58f3
Add tests to previous commit.
2010-05-16 12:14:02 +02:00
José Valim
41311eb38d
Move mailer configuration to the app.
2010-04-25 09:26:51 +02:00
José Valim
4da63c5395
Ensure routes are loaded before application classes are eager loaded, closes #212 .
2010-04-22 19:59:52 +02:00
José Valim
b9c0676a01
Get rid of deprecation warnings.
2010-04-15 08:43:39 +02:00
José Valim
731f156f50
Do not show unlock link unless strategy is e-mail. Closes #204 .
2010-04-15 08:40:15 +02:00
José Valim
6bd0c7fc2b
:as and :scope in routes is deprecated. Use :path and :singular instead. Closes #199 .
2010-04-15 08:21:13 +02:00
José Valim
1591294b7a
Compatibility with Rails beta 3.
2010-04-05 11:46:26 +02:00
José Valim
16666b7587
Get rid of flash hook and clean up passwords after registration.
2010-04-01 13:23:49 +02:00
José Valim
dac7887d7c
Allow the dummy application in test/rails_app to boot.
2010-04-01 12:49:11 +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
Jacques Crocker
1c39590e20
Devise / DataMapper updates
...
allows devise to work with the upcoming dm-validation changes
2010-03-28 20:53:22 -07: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
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
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
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
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
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
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