aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/commands.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ruby 1.9 compat: limit const_defined?Jeremy Kemper2009-02-271-2/+6
|
* Allow custom rails generators to pass in their own binding to Create command ↵Joshua Peek2008-12-281-1/+1
| | | | so that the corresponding erb templates get rendered with the proper binding [#1493 state:resolved]
* Add "-m/--template" option to Rails generator to apply template to generated ↵Jeremy McAnally2008-12-021-0/+1
| | | | | | application. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Don't include the path when checking class collisions [#545 state:resolved]Joshua Peek2008-10-131-0/+1
|
* Set config.active_record.timestamped_migrations = false to have migrations ↵Nik Wakelin2008-07-171-1/+16
| | | | | | with numeric prefix instead of UTC timestamp. [#446 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert "Fixed generator collisions for nested controller modules."Joshua Peek2008-07-111-16/+9
| | | | This reverts commit 2d372d704987e05712ccd937e78d8dbd41242efe.
* Ensure Rails::Generator quotes file names while generating diff. [#264 ↵Carl Porth2008-07-021-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added better error message for when the class name is already used (and dont ↵David Heinemeier Hansson2008-05-311-3/+5
| | | | show suggestions if there are none)
* Fixed generator collisions for nested controller modules.Amol Hatwar2008-05-131-9/+16
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Update generator tests. Closes #11487 [thechrisoshow]Jeremy Kemper2008-04-011-22/+22
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Switched to UTC-timebased version numbers for migrations and the schema. ↵David Heinemeier Hansson2008-03-281-12/+1
| | | | | | This will as good as eliminate the problem of multiple migrations getting the same version assigned in different branches. Also added rake db:migrate:up/down to apply individual migrations that may need to be run when you merge branches (closes #11458) [jbarnette] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9122 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Git support for script/generate. Closes #10690.Jeremy Kemper2008-02-021-3/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8772 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Resurrect WordNet synonym lookups. Closes #10710.Jeremy Kemper2008-01-101-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct indentation in a couple spots. Closes #10671 [l.guidi, rick]Rick Olson2008-01-021-19/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8527 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 ↵Jeremy Kemper2007-12-101-4/+4
| | | | | | [Pratik Naik] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed incorrect migration number if script/generate executed outside of ↵David Heinemeier Hansson2007-10-181-1/+1
| | | | | | Rails root (closes #7080) [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7963 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added better documentation for generator overwrite options (closes #9842) ↵David Heinemeier Hansson2007-10-111-7/+17
| | | | | | [wincet] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7837 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling errors (closes #9706) [tarmo/rmm5t]David Heinemeier Hansson2007-09-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Apply the rest of Chads patchDavid Heinemeier Hansson2007-02-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6180 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generator: use destination path for diff tempfiles. Closes #7015.Jeremy Kemper2007-01-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5914 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix scaffold_resource generator so it respects the --pretend argument when ↵Rick Olson2006-12-261-2/+4
| | | | | | creating the routes file. Closes #6852 [fearoffish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5790 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generator can show diff on file collision to help you decide whether to skip ↵Jeremy Kemper2006-11-021-18/+36
| | | | | | or overwrite. Closes #6364. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5397 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generated directories are recursively svn added, like mkdir -p. Closes #6416.Jeremy Kemper2006-11-021-6/+20
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5395 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* resource and scaffold_resource generators add a restful route to ↵Jeremy Kemper2006-11-011-0/+28
| | | | | | config/routes.rb git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Replace Ruby's deprecated append_features in favor of included. [Marcel ↵Marcel Molina2006-04-291-1/+1
| | | | | | Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4310 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Don't raise when the migration file is missing or it'll stop destroy model inScott Barron2006-03-261-1/+5
| | | | | | | | | the middle if there is no matching migration file. Closes #4426 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix for destroying migrations made when generating a model (closes #4246) ↵David Heinemeier Hansson2006-03-191-2/+5
| | | | | | [tomtoday@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3971 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added collision option to template generation in generators (closes #3329) ↵David Heinemeier Hansson2006-02-261-2/+4
| | | | | | [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3663 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tmp/sessions, tmp/cache, and tmp/sockets as default directories in the ↵David Heinemeier Hansson2006-02-251-2/+3
| | | | | | Rails skeleton [DHH] Changed the default session configuration to place sessions in tmp/sessions, if that directory is available, instead of /tmp (this essentially means a goodbye to 9/10 White Screen of Death errors and should have web hosting firms around the world cheering) [DHH] Added a default configuration of the FileStore for fragment caching if tmp/cache is available, which makes action/fragment caching ready to use out of the box with no additional configuration [DHH] Changed the default configuration for lighttpd to use tmp/sockets instead of log/ for the FastCGI sockets [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3645 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make migration generator only report on exact duplicate names, not partial ↵Marcel Molina2006-01-131-1/+1
| | | | | | dupliate names. Closes #3442. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3413 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix shebang handling for empty files. References #2927.Jeremy Kemper2005-12-091-4/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3258 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Generator copies files in binary mode. References #3156.Jeremy Kemper2005-12-091-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3256 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allows generator to specify migrations directory. References #2960.Jeremy Kemper2005-11-201-2/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3101 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introducing the session_migration generator. Creates an add_session_table ↵Jeremy Kemper2005-11-201-3/+45
| | | | | | migration. References #2958. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3098 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Eliminate nil from newly generated logfiles. References #2927.Jeremy Kemper2005-11-181-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backing out of #2496. Comparing md5 checksums is in no way faster than doing ↵Marcel Molina2005-10-081-2/+1
| | | | | | a direct compare. Benchmarks help. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2497 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Compare md5 checksums of files rather than files themselves, as it's far ↵Marcel Molina2005-10-081-1/+2
| | | | | | faster for large files (like logs). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2496 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Skip directories when checking for identical source and destination files.Marcel Molina2005-10-081-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Evaluate dynamic templates before checking if the new file is identical to ↵Marcel Molina2005-10-081-5/+13
| | | | | | the old one. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2494 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the generator skip a file if it already exists and is identical to the ↵Marcel Molina2005-10-081-3/+10
| | | | | | new file. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed missing dsDavid Heinemeier Hansson2005-09-111-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2188 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added -c/--svn option to the generator that'll add new files and remove ↵David Heinemeier Hansson2005-09-091-3/+39
| | | | | | destroyed files using svn add/revert/remove as appropriate #2064 [kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix module support for controller generators #668 [Ulysses]David Heinemeier Hansson2005-02-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@691 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added new generator framework that informs about its doings on generation ↵David Heinemeier Hansson2005-02-071-0/+409
and enables updating and destruction of generated artifacts. See the new script/destroy and script/update for more details #487 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de