1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
Commit graph

33 commits

Author SHA1 Message Date
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
Alexander Uvarov
6ff77c9fdf Add merb-auth like router helper 2010-05-25 05:51:32 +08:00
José Valim
f1bbce58f3 Add tests to previous commit. 2010-05-16 12:14:02 +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
1c5d4771ff Initial work on making the authentication stack more flexible. 2010-03-29 16:13:19 +02: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
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
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
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
6b837cb285 Introducing Registerable module, allowing users to sign up. 2010-02-04 20:08:38 -02:00
José Valim
04ce9d1e6f Should accept path prefixes not starting with slash. 2010-01-16 14:39:57 +01:00
José Valim
efc0ae230a Deprecate :all. 2010-01-13 19:45:24 +01:00
José Valim
4d8f5ea165 Add an easy way to configure an application to sign in users through "/sign_in".
First, configure your routes:

  map.devise_for :users
  map.sign_in "/sign_in", :controller => "sessions", :action => "new"

Then, in config/initializers/devise.rb:

  config.use_default_scope = true

The default scope is always the first declaration in routes.rb, but if you need
to change it, you can also do it through the initializer:

  config.default_scope = :user
2010-01-06 14:31:00 +01:00
José Valim
0819f87255 Test different ORMs 2009-12-21 15:29:58 +01:00
José Valim
076ce9add8 Improve timeoutable tests a bit. 2009-11-24 11:52:13 -02:00
Carlos Antonio da Silva
099c77e867 Introducing timeoutable to timeout sessions without activity. 2009-11-23 23:01:00 -02:00
José Valim
1a8dc7fe37 Allow default scope to beconfigured. 2009-11-19 13:09:05 -02:00
Carlos Antonio da Silva
836770a9f2 Allow passing options from devise_for to route definitions, useful on subdomain scenarios. 2009-11-13 08:49:22 -02:00
José Valim
4debe4080b Allow :path_prefix to be given to devise_for. 2009-11-06 14:27:27 -02:00
Carlos A. da Silva
fc08a7c5ac Changing resource_home_path to resource_root_path and add the same redirect to confirmation and password. 2009-10-19 00:38:50 -02:00
Carlos A. da Silva
9a10709545 Fixing singular options for mappings. 2009-10-18 18:19:04 -02:00
José Valim
9feb9455ce Allow page after sign in to be configured. 2009-10-18 15:25:16 -02:00
Carlos A. da Silva
d87ff26cbd Allow setup of path_names in devise_for mapping for overwriting sign_in, sign_out, password and confirmation keywords. 2009-10-16 20:46:06 -03:00
José Valim
f1cecacc99 Move mappings to routes. 2009-10-12 21:49:51 -03:00
José Valim
78525e2536 More tests 2009-10-12 08:49:28 -03:00
Carlos A. da Silva
62bef5605a Adding filters generation based on devise mappings. 2009-10-11 08:15:48 -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
7ce49cbbe8 Configuring session and password controllers as engine, and getting integration tests from devise example app. 2009-10-09 07:36:12 -03:00