José Valim
a53cc74fd9
Revert "Move password_required? to authenticatable. This allow you to reuse it when building your own validations."
...
This reverts commit 386e7be823 .
2010-03-27 12:31:38 +01:00
José Valim
bd4b29c0fd
sign_in_count shoud default to zero.
2010-03-26 12:56:24 +01:00
Carlos Antonio da Silva
6f41284714
Merge branch 'master' of github.com:plataformatec/devise
2010-03-26 08:44:42 -03: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
386e7be823
Move password_required? to authenticatable. This allow you to reuse it when building your own validations.
2010-03-26 12:19:01 +01:00
José Valim
e136573905
Improve workflow with devise generator.
2010-03-26 10:36:15 +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
José Valim
76e45ecb12
Bring unloadable back.
2010-03-23 00:39:27 +01:00
José Valim
8fbbe34bdd
Fix routes generation on Rails master.
2010-03-16 14:48:30 +01:00
José Valim
3a84fd4f3f
Ensure devise_views is always executed.
2010-03-16 02:51:59 +01:00
Ørjan Blom
f129b9ffd7
don't use a static name in a public directory, and delete after use.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 15:02:54 +01:00
José Valim
185541b9e4
Use template engine as option since it's the one used by rails.
2010-03-14 09:39:59 +01:00
Fred Wu
de92be39f2
Use Ruby's tmp directory instead of a ghost directory inside the devise gem folder.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:57 +01:00
Fred Wu
3f85fa88c3
Use 'rescue' to ensure the presence of Haml.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:52 +01:00
Fred Wu
2ebbc30540
Made sure no deprecated HAML templates (in case any) will get copied over.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:45 +01:00
Fred Wu
b8091928a0
A more user friendly way of checking the existence of Haml.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:39 +01:00
Fred Wu
cbd35a846a
Added verification for HAML >= 2.3.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:31 +01:00
Fred Wu
90e8253205
Added HAML as a template engine option to devise_views generator (-t or --engine). HAML files are created based on the erb files on the fly using 'html2haml' command that comes with HAML.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-14 09:25:19 +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
59b26d8427
All tests pass using Rails master.
2010-03-11 18:39:32 +01:00
José Valim
cbc3747039
No need to check if app.routes.url_helpers exists. I.e. Devise master now *requires* Rails master (aka beta1).
2010-03-10 08:59:22 -07:00
José Valim
ed3a460bad
Allow to give a scope when copying views.
2010-03-10 16:53:09 +01:00
José Valim
ac742e3271
Clean up lockable and class methods API.
2010-03-10 16:13:54 +01:00
Fred Wu
cd17099401
Create the devise_views directory in './app/views' instead of the root.
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-10 15:29:30 +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
Ørjan Blom
1a740774e3
use Devise.encryptor setting when creating the migration
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-09 10:38:39 +01:00
Philip MacIver
bb9f594cc8
Changed the datamapper orm so that the default value is only deleted when it is nill, this is so that is a value is set to another value except nil by default through devise, that value will be maintained in datamapper
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-06 18:14:37 +01:00
Philip MacIver
d64e146ec9
Modified the datamapper orm so that it actually works with devise
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-03-06 16:18:53 +01:00
Philip MacIver
0a0d7ba577
Typo in the datamapper orm stopped it from being loaded properly
...
Signed-off-by: Carlos Antonio da Silva <carlosantoniodasilva@gmail.com >
2010-03-04 20:44:09 -03:00
José Valim
1d4f4c19c9
Release pre4 with improved controller handling.
2010-03-03 12:22:04 +01:00
José Valim
0e64bc74b7
Move trackabe logic to the model.
2010-03-03 12:03:43 +01:00
José Valim
038627574c
Keep modules definition in a different file.
2010-03-03 12:03:43 +01:00
José Valim
af39afcdf8
More refactoring.
2010-03-03 12:03:43 +01:00
José Valim
1660831002
Give more flexibility when swapping controllers.
2010-03-03 12:03:42 +01:00
Lucas Uyezu
8525b56318
SQLite requries a default value when the column is NOT NULL
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-02-25 08:33:38 +01:00
José Valim
bcb46bbccb
Do not forget frozen records.
2010-02-25 08:00:10 +01:00
José Valim
484361e815
Improve error message on undefined method devise.
2010-02-25 07:54:06 +01:00
José Valim
94511c1a43
Bump to 1.1.pre3
2010-02-24 22:19:46 +01:00
snusnu
a12ca2955f
Avoid datamapper deprecation warnings
2010-02-24 01:52:08 +08:00
José Valim
e6f3034b11
Do not remove options from MongoMapper and DataMapper in find.
2010-02-23 15:51:29 +01:00
José Valim
e9682a3e64
In Rails 3, for some reason, you need to restart the server after copying views.
2010-02-19 23:54:05 -07:00
Carlos Antonio da Silva
b3283e097d
Use available warden_options method instead of env.
2010-02-19 09:07:37 -02: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
889803151d
Release 1.1.pre2
2010-02-18 18:06:01 +01:00
José Valim
35e058b279
Fix the undefined method devise issue.
2010-02-18 18:04:08 +01:00
José Valim
104d5b0441
There is no such thing as magic, my dear Watson.
2010-02-18 17:59:05 +01:00