Lucas Mazza
eb091b867f
Fix rails g devise:views -v mailer with the Simple Form generator.
...
Our Simple Form generator shouldn't be responsible for generating the `mailer`
view directory, so we should skip it and let the Erb generator do the job.
Closes #3254 .
2015-08-27 12:12:13 -03:00
Lucas Mazza
c043eca2b2
Silence controller generator warning output
2014-09-18 18:24:26 -03: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
992ee86b41
add test for controllers generator
2014-08-24 22:05:54 -05:00
Damir Svrtan
df9712bbe4
Rename links.erb to links.html.erb
2014-08-18 00:15:25 +02:00
Adrian Pacała
53504f7e28
Generate inet columns for postgresql
2014-05-07 08:50:21 +02: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
Anshul Sharma
dc1b399a8b
Updated ruby 1.9 hash syntax
2014-02-25 22:12:55 +05:30
Erik Michaels-Ober
3f03ec02ad
Cleanup trailing whitespace
2013-12-05 09:03:32 +01:00
José Valim
cd1bc53947
Do not generate attr_accessible for any Rails 4 app
2013-07-26 09:22:03 +02:00
Justin Coyne
b7e67115fc
When using rails 3.2, the generator adds 'attr_accessible' to the model. Fixes #2515
2013-07-23 22:49:05 -05:00
Drew Ulmer
2f88f7c0ed
Remove protected_attributes gem and all whitelisting
2013-03-31 15:21:49 -05:00
Vasiliy Ermolovich
f822f92321
use scoped path to shared views if scope is present
...
closes #2253
2013-02-09 02:35:06 +03:00
Vasiliy Ermolovich
2f36d0dd32
handle namespaced models in AR generator
...
closes #2043
2012-10-28 00:59:33 +03:00
Rodrigo Flores
525bcd4e2d
Refactoring simulation inside engine to decide based on the api
2012-05-02 14:53:14 -03:00
Rodrigo Flores
271eac7381
Testes passing on 3.1 \o/
2012-05-02 14:15:42 -03:00
Rodrigo Flores
afc3888391
Generators on engine fix
2012-05-02 14:15:42 -03:00
Rodrigo Flores
9bf718dd82
Revert "Move devise/shared/_links.erb to devise/_links.erb"
...
This reverts commit aa2d15aa33 .
Conflicts:
CHANGELOG.rdoc
2012-03-03 10:40:59 -03:00
José Valim
aa2d15aa33
Move devise/shared/_links.erb to devise/_links.erb
2012-01-02 21:26:26 +01:00
José Valim
7c11564613
Remove Rails 3.0 only code.
2012-01-02 20:43:39 +01:00
José Valim
5c71c1cf19
Improve devise generator tests.
2011-11-10 10:19:57 -02:00
José Valim
0fd5493220
Merge pull request #1326 from sbounmy/master
...
feature added : markerb generator for mails
2011-11-10 03:27:53 -08:00
Vasiliy Ermolovich
493ddbd99e
change method should be instance method. closes #1345
2011-11-06 16:15:17 +03:00
Vasiliy Ermolovich
f00d9c5eff
generate migrations with new .change method for rails >= 3.1. closes #1345
2011-11-06 15:47:34 +03:00
Bounmy Stephane
76bff0d4de
removed Gemfile's injection
...
by default : Markerb define then markerb email views generated otherwise
erb
2011-09-30 22:41:02 -07:00
Bounmy Stephane
a629654a15
ensure that the gem markerb entry is not duplicated in the gemfile
2011-09-14 20:20:20 -07:00
José Valim
0b9a95e294
Allow --skip-routes to devise generator.
2011-09-14 16:52:28 -07:00
Bounmy Stephane
8067022d98
added injection of markerb in Gemfile
2011-09-13 22:50:39 -07:00
Bounmy Stephane
72ba56b071
generate markerb views with "--markerb" instead of "-m markerb"
2011-09-13 21:46:46 -07:00
Bounmy Stephane
10451e9e38
added mailviewsgenerator
...
now mail generator can copy markerb or erb mail template views
2011-09-13 00:19:48 -07:00
Sean Hill
8ad414b217
Added a helper to look for an modifying migration. If one is found during :revoke, the modifying migration is deleted. If the modifying migration is not found, the creating migration is deleted.
2011-08-29 17:53:32 -05:00
Sean Hill
179cb2c88a
Changed the order of the devise_generator methods to create the model after the migration to properly use model_exists?, and I added tests to prove the generator works.
2011-08-28 16:02:58 -05:00
Ches Martin
6bc93173f1
Restore forlorn Mongoid generator tests
2011-08-05 02:40:42 +07:00
José Valim
13ef23f517
Add simple form generators.
2011-06-27 11:50:28 -03:00
José Valim
6250fa8529
Revert "Merge pull request #1103 from Mab879/master"
...
This reverts commit 944e1c0378 , reversing
changes made to 97659a1193 .
2011-06-08 17:37:49 +02:00
Matthew Burket
4f446241a4
Added Controller Generator and tests to go along with it.
2011-05-30 23:07:20 -05:00
Vinicius Baggio
42d002702c
Considering namespaces while generating the routes. Closes #682
2011-02-23 14:24:47 -03:00
Vinicius Baggio
6bd65209d5
Added a test case for Devise Generator
2011-02-23 14:24:47 -03:00
José Valim
b942520dc4
No need to use expand_path as we assume the test directory is in the .
2010-12-18 08:22:01 +01:00
Andrés Mejía
a2e92a2ef2
Adding mongoid generator tests.
2010-12-18 15:15:43 +08:00
Andrés Mejía
60be68436b
Adding tests for Active Record generator
2010-12-18 15:15:43 +08:00
Carlos Antonio da Silva
7ed1fb116f
Cleanup requires in generators tests, fixing issue with load error in Ruby 1.9.2
2010-12-09 23:52:30 -02:00
stJhimy
4b776c4910
Added test for Devise::Generators::ViewsGenerator with scope
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-26 18:00:45 -02:00
stJhimy
f53f02f385
Added test for Devise::Generators::ViewsGenerators with no params
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-26 18:00:39 -02:00
stJhimy
b3d3deb12f
Added test for Devise::Generators::InstallGenerator
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-10-26 18:00:33 -02:00