aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
...
* ruby19: no need to rescue when requiring 'rdoc/task' in Ruby >= 1.9Akira Matsuda2012-02-271-7/+2
|
* let the connection pool of new applications have size 1 rather than 5Xavier Noria2012-02-263-9/+27
| | | | | | | | | The majority of Rails applications are multiprocess, people may wonder why rails new generates a default pool of 5, does my application need a connection pool of 5? By generating a default of 1 database.yml is much more clear, and with the comment people know what is the connection pool for, and they know it has to be bigger for multithread apps.
* consistently mention first patch, then putXavier Noria2012-02-242-5/+5
| | | | | | There was a mix, sometimes patch first, sometimes put first. Use always patch first, since this is going to be the primary verb for updates.
* uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵Xavier Noria2012-02-241-3/+0
| | | | the update action of resources
* removes the reconnect key from the database.yml generated for MySQLXavier Noria2012-02-241-12/+0
| | | | | | | | | | The reconnect flag does not play nicely with transactions and so it is of little use in Rails applications. Thus, albeit supported by mysql2, it does not deserve such a prominent place in the generated database.yml, which should be a representative config example. Note that the flag is false by default. Advanced users know from mysql2 docs that the flag is available.
* explains why reconnect is false by default in the database.yml generated for ↵Xavier Noria2012-02-241-1/+10
| | | | MySQL
* Use consistent whitespace for commented options.Felix Bünemann2012-02-231-1/+1
|
* Move config.autoflush_log to correct template.Felix Bünemann2012-02-232-3/+3
| | | | | | This accidentally ended up in the development template instead of the production template, where it makes most sense.
* Always default to flushing enabledFelix Bünemann2012-02-231-1/+1
|
* Advertise autoflush option in production templateFelix Bünemann2012-02-231-0/+3
|
* Add config.default_method_for_update to support PATCHDavid Lee2012-02-223-5/+8
| | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* Add convenience method to hide a generator from the available onesCarlos Antonio da Silva2012-02-031-0/+6
| | | | | | It is usually useful to be able to hide a generator when running rails generate command. Such generators might be used only to dry up generators code and shouldn't be available to end users.
* Use https://rubygems.org source for default GemfileGuillermo Iguaran2012-02-011-1/+1
| | | | See https://github.com/rails/rails/pull/4684#commitcomment-920313
* Merge pull request #4825 from sikachu/master-fix-plugin-newJosé Valim2012-02-011-1/+1
|\ | | | | Fix broken test introduced from #4814
| * Fix broken test introduced from #4814Prem Sichanugrist2012-02-011-1/+1
| | | | | | | | | | | | * ruby_debugger_gemfile_entry was removed from the generator. Please make sure to run `grep` or `ack` to make sure it was removed in every places.
* | Fix GH #4737. Missing helper file (LoadError) in mountable plugin.kennyj2012-02-021-1/+3
|/
* Remove ruby_debugger_gemfile_entry from app_base, we can just put ↵Guillermo Iguaran2012-02-012-5/+1
| | | | ruby-debug19 commented directly in Gemfile
* Don't run bundle install when passed with --pretend optionkennyj2012-02-011-1/+1
|
* Only add ActiveRecord configuration if it is presentRafael Mendonça França2012-01-311-1/+1
|
* Merge pull request #4727 from railsaholic/dependent_restrict_should_add_errorJon Leighton2012-01-311-0/+5
|\ | | | | has_many/has_one, :dependent => :restrict, deprecation added
| * has_many/has_one, :dependent => :restrict, deprecation added.Manoj2012-01-291-0/+5
| |
* | Fix failing test from [7619bcf2]Prem Sichanugrist2012-01-301-1/+1
| |
* | rewrites a couple of alternations in regexps as character classesXavier Noria2012-01-301-1/+1
| | | | | | | | | | Character classes are the specific regexp construct to express alternation of individual characters.
* | Fixes #4764 - remove generated new line in routes.rb on scaffold generationVijay Dev2012-01-311-1/+1
| | | | | | | | | | | | | | | | | | As explained in #4764, when destroying a scaffold, routes.rb loses a new line. This seems to happen because a new line is added while generating the route and the destroy generator removes it. However, this causes a problem if the routes file is manually edited to remove such new lines. This commit just removes that extra new line from added in the first place.
* | remove ruby 1.8 support codeSergey Nartimov2012-01-291-6/+2
|/
* Revert "Merge pull request #4690 from jdutil/filter_password_confirmation"José Valim2012-01-261-1/+1
| | | | | This reverts commit eafa1c429835e099897a0da90bc39d9dbbb7ed4e, reversing changes made to f251437415f7b803f7a84118fcc970a111ace266.
* Add :password_confirmation as a filtered param by default.Jeff Dutil2012-01-261-1/+1
|
* Merge pull request #4684 from rossmeissl/patch-1Xavier Noria2012-01-251-1/+1
|\ | | | | Use `:rubygems` shortcut as standard Gemfile's `source` instead of explicit URL
| * Use `:rubygems` shortcut as standard Gemfile's `source` instead of explicit ↵Andy Rossmeissl2012-01-251-1/+1
| | | | | | | | | | | | URL. Theoretically this would future-proof Gemfiles against possible (albeit unlikely) change in the rubygems URL.
* | Use content_tag_for with array by default on scaffold.José Valim2012-01-261-4/+2
|/
* use rack 1.4.1Sergey Nartimov2012-01-231-2/+0
|
* Support decimal{1,2} and decimal{1-2} and decimal{1.2} so it works fine with ↵José Valim2012-01-221-2/+2
| | | | | | | | bash, zsh, etc, closes #4602 Conflicts: railties/test/generators/migration_generator_test.rb
* uniformizes the punctuation of comments in some files generated for new appsXavier Noria2012-01-224-42/+42
| | | | | | Some end with a full stop, some don't. Let's have attention to detail and make them uniform. I have chosen to add full stops according to our documentation guidelines related to RDoc.
* use rack from master branchSergey Nartimov2012-01-161-0/+2
| | | | | it's needed until new rack release with Rack::BodyProxy fixes https://github.com/rack/rack/commit/b06ef82876416fe69429f7d3ee6e51bf26aec75f
* fix a broken testVijay Dev2012-01-151-1/+1
| | | | | | The commit 2f632f53919d2b44dbb2cfaadabed2310319f005 extracted the options into constants and while doing so, there was a minor error of using a wrong constant name.
* Extract index and uniq index options to constantsCarlos Antonio da Silva2012-01-141-4/+7
|
* Add therubyracer gem commented in default GemfileGuillermo Iguaran2012-01-121-2/+14
|
* minor editsVijay Dev2012-01-132-2/+2
|
* No need to check for 'draw do |map|' anymorePiotr Sarnacki2012-01-071-1/+1
|
* Add Gemfile entry when creating a plugin in application's directoryPiotr Sarnacki2012-01-071-0/+31
| | | | | | | | | | | | After vendor/plugins were removed from rails, the new method to create plugins is to create gem plugins. Most of the time if you create a new plugin in rails application's directory, you want to extract something from that application and use it immediately, ie. add such line to Gemfile: gem 'foo', :path => './vendor/foo' This commit makes plugin new generator to add such line automatically.
* require minitest rather than test/unitAaron Patterson2012-01-061-1/+1
|
* use Kernel#Array instead of Array.wrap in Rails::Generators::ActionsSergey Nartimov2012-01-061-2/+1
|
* Rails::Plugin has goneSantiago Pastorino2012-01-034-47/+2
|
* rename ruby-debug to ruby-debug19Vishnu Atrai2012-01-011-2/+2
|
* Fix rails/generators/base.rb documentation for hook_forPavel Gabriel2011-12-291-3/+3
|
* Merge pull request #4221 from tonycoco/masterJon Leighton2011-12-281-0/+1
|\ | | | | Rails template creation issue
| * Update railties/lib/rails/generators/actions.rbTony Coconate2011-12-281-0/+1
| |
* | Use 1.9 hash syntax instead.José Valim2011-12-241-2/+2
| |
* | Fix regexp intervals.José Valim2011-12-241-2/+2
| |
* | Tidy up migration types.José Valim2011-12-246-47/+63
| |