Lucas Mazza
6405c96213
last_attempt_warning should be true for now on.
2014-10-03 09:49:29 -03:00
Lucas Mazza
131013ac56
Controller templates should have the .rb extension, not .erb.
2014-09-18 17:21:25 -03:00
Lucas Mazza
79a4b93993
Point users to the canonical Omniauth docs in our README, not the wiki.
2014-09-18 17:18:11 -03:00
Lucas Mazza
9fe1561b56
Merge pull request #3169 from Chun-Yang/master
...
Create controller generator for devise (rails generator devise:controllers users -c sessions)
2014-09-18 17:17:17 -03:00
José Valim
73c406b481
Fix docs for http_authenticatable_on_xhr, closes #3112
2014-09-18 19:50:58 +02:00
Chun-Yang
439112adf3
change before_action to before_filter to make it backward compatible to rails 3.2
2014-09-09 20:40:05 -05:00
Chun-Yang
17f6c76dc7
simplify sanitizer in *_params function
2014-09-09 20:35:46 -05:00
Chun-Yang
6003c69818
change indentation
2014-09-09 20:31:48 -05:00
Chun-Yang
67dc138d94
add before_action hooks for registrations and sessions controllers to enable user to add extra params
2014-09-03 00:10:32 -05:00
Chun-Yang
86ac552287
add *_path_for stubs in all controllers
2014-09-02 23:49:37 -05:00
Chun-Yang
e2e9e90d69
move controller generator info from lib/generators/templates/README to README
2014-09-02 23:25:38 -05:00
Chun-Yang
daad552e1b
make scope required
2014-09-02 23:04:27 -05:00
Chun-Yang
2f81a83232
refactor code, use a constant insead of a class variable
2014-09-02 22:54:06 -05:00
Chun-Yang
6ba87ed339
comment out all stubs
2014-09-02 22:34:13 -05:00
Lucas Mazza
6af18ed9e3
Change the 'postgresql?' check to not connect to the database.
...
Closes #3181
2014-09-02 11:24:31 -03:00
Anton Rieder
6117a3b56d
Update Simple Form templates for 3.3.0
2014-09-01 21:59:03 +02:00
Chun-Yang
274daad005
fix code example shown in README user will see after running generator
2014-08-27 23:25:48 -05:00
Chun-Yang
316be42ed6
add instruction in the README file for controllers generator. This readme will be printed when user invoke devise:install
2014-08-27 23:20:26 -05:00
Chun-Yang
220c8ff089
print README instruction after running controller generator
2014-08-27 23:19:43 -05:00
Chun-Yang
af47bb5542
update description message in the controllers generator
2014-08-24 22:41:00 -05:00
Chun-Yang
02b1a9c4e0
enable empty scope when generating a controller
2014-08-24 21:28:06 -05:00
Chun-Yang
8de94035f0
add better help description
2014-08-24 00:06:12 -05:00
Chun-Yang
d8d9814ed4
user erb template to generate controllers, enable --controllers option to specify controllers, make 'scope' argument required
2014-08-23 23:29:45 -05:00
Chun-Yang
4f77da5b87
Step1: Create controllers templates, and create controller generator to copy ALL templates to rails app directory
2014-08-23 16:44:06 -05:00
Adrian Pacała
a2376d6ca1
Fix Rails 4 detection
2014-05-07 22:17:40 +02:00
Adrian Pacała
fa1a864731
Generate inet columns for Rails 4 only
2014-05-07 09:18:10 +02:00
Adrian Pacała
53504f7e28
Generate inet columns for postgresql
2014-05-07 08:50:21 +02:00
Sadjow Leão
a2bd5631da
Use port option in default url options for ActionMailer
2014-04-04 19:01:12 -03:00
Lauro Caetano
f7fdde1ab0
Add the invalidate_all_sessions_on_logout configuration to invalidate
...
all the remember me tokens when the user signs out.
2014-04-04 16:17:26 -03:00
Lucas Mazza
ccfe389be1
Merge pull request #2916 from kayline/master
...
Add ability to generate only specified view directories
2014-03-09 20:49:27 -03:00
Molly Trombley-McCann and Shatarupa Nandi
a79e0f6bca
Rename variable to views, change flag to -v
2014-03-06 13:41:11 -08:00
Molly Trombley-McCann
09ebe833b3
Add a flag to views generator allowing user to specify which view directories to generate
2014-03-04 15:05:16 -08:00
Greg Cobb and Molly Trombley-McCann
0d06ed6c79
WIP
2014-03-03 09:30:00 -08:00
Peter Vandenabeele
7e6dd5022b
Clarify that this stretch behavior is for bcrypt
...
* other encryptors show a different behavior regarding the
number of stretches
2014-03-02 20:23:57 +01:00
Peter Vandenabeele
286eefa9b4
Note that the cost of bcrypt grows dramatically with number of stretches
...
* this will avoid people (like me) loosing an hour trying to understand
why doing it "a little bit safer" with 20 stretches suddenly takes
60 seconds to do sign_up or sign_in. An example of such discussion is:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/399627
2014-03-02 18:57:32 +01:00
Peter Vandenabeele
a89af190e2
Fix typo in initializer template comment
2014-03-02 15:22:59 +01:00
Lucas Mazza
aea82d0b03
Update remaning 1.8 hash syntax.
2014-02-25 14:25:55 -03:00
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Ryan McGeary
5f9838950a
Remove password_length default docs in config template
...
The default specified in the docs does not match up with the default
specified in the config.
See
cc8636cfed/lib/devise.rb (L127)
Changing the docs to read 6..128 with the config setting to 8..128 is
feared to cause confusion, so removing the default clause instead.
2014-02-16 08:19:47 -05:00
Lucas Mazza
e57b672e90
Ensure that migrations are created with the .rb extension.
...
Since rails/rails#13612 the generator won't always add the `.rb`
extension when creating migrations with the `migration_template`
method.
2014-02-11 10:19:05 -02:00
Lucas Mazza
eba91e6580
Read the secret_key value from Rails secret_key_base.
...
It is possible to override this by setting the `secret_key` manually
on the `devise.rb` initializer on your application.
2014-01-22 11:13:25 -02:00
Erik Michaels-Ober
3f03ec02ad
Cleanup trailing whitespace
2013-12-05 09:03:32 +01:00
Erik Michaels-Ober
26e85c44e2
Removed use of gendered pronouns
2013-12-02 10:02:17 +01:00
Vasiliy Ermolovich
bb2ff3553b
require rails generator base class in devise generators
...
closes #2743
2013-11-15 15:56:09 +03:00
José Valim
69d28f9b0e
Add config.last_attempt_warning to default config
2013-10-26 11:56:31 +02:00
Jessy Bernal
fa06b33dd3
Fix #2673 email templates generated with the good @token
2013-10-08 11:25:04 +02:00
José Valim
dff7891b97
Get rid of token authentication
2013-09-02 19:15:47 -03:00
Alexander Zubkov
095572b6fd
Add nulls to migration generator
2013-09-02 15:00:12 +04:00
Pavel Pravosud
91f2bce08e
Consistent single quotes in devise.rb generator
2013-08-30 22:21:12 +07:00
José Valim
3232d14b20
token authenticatable mentions
2013-08-21 17:33:38 +02:00