aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* move config.assets.precompile into config/application.rbYves Senn2013-02-202-6/+4
|
* Better not use tab chars in the generator templateAkira Matsuda2013-02-201-5/+5
|
* Remove config.autoload_paths from config/application.rbAndrew White2013-02-191-3/+0
| | | | | | | | | | Most application developers shouldn't be adding paths to `config.autoload_paths` as it won't be eagerly loaded so remove it from the generated config/application.rb file. If a developer does want to autoload from paths outside of the app directory then they should add the path to `config.eager_load_paths` as these paths are also autoloaded as well.
* Added extra comment when a migration already exists of the same name.wangjohn2013-02-151-1/+1
| | | | | | User should know that he can overwrite the previous migration. This comes in handy especially when generating models which were previously created then removed.
* Added notice message for destroy method in scaffoldRahul P. Chaudhari2013-02-101-1/+1
|
* Fix article for generator nameRyunosuke SATO2013-02-071-2/+2
| | | | Use 'some' instead of 'a/an'.
* Add --rc description on the command linerobertomiranda2013-02-041-0/+3
|
* Add --no-rc description on the command linerobertomiranda2013-02-021-0/+3
|
* Remove BestStandardsSupport middlewareGuillermo Iguaran2013-01-291-3/+0
|
* Merge pull request #8303 from jeremywrowe/masterRafael Mendonça França2013-01-251-1/+1
|\ | | | | | | | | | | | | Fixes improper database name when creating a new rails app with a '.' Conflicts: railties/CHANGELOG.md
| * Fixes improper database name when a '.' is included while creating a new railsJeremy W. Rowe2013-01-161-1/+1
| | | | | | | | | | | | application. EG: `rails new something.awesome.com` Conflicts: railties/CHANGELOG.md
* | Revert "Merge pull request #7873 from steveklabnik/update_initializer"Carlos Antonio da Silva2013-01-222-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 43e14f8ff203c21646f733d35bdde4e68da70a3b, reversing changes made to bb17a0f085aba40a1952612f6c98b2a5804a1152. Conflicts: railties/lib/rails/generators/rails/app/templates/config/application.rb railties/lib/rails/generators/rails/app/templates/config/initializers/locale.rb Reason: setting the Time.zone in an after_initialize block can become a problem for people upgrading, since it's not going to be available when config/initializers run, and people might be relying on it. An example that I noticed was with the Chronic gem, for date/time parsing. It requires us to configure the time class to be Time.zone, and doing that in an initializer no longer worked with these changes, so reverting is the safer path for now.
* | Remove unnecessary requireRyunosuke SATO2013-01-221-1/+0
|/ | | | `require 'rubygems'` is already required in Ruby 1.9 or later.
* Deprecate `Rails::Generators::ActiveModel#update_attributes`Carlos Antonio da Silva2013-01-121-0/+8
| | | | | | | | | | | | | | | | Deprecate #update_attributes in favor of `#update`. ORMs that implement `Generators::ActiveModel#update_attributes` should change to `#update`. Scaffold controller generators should change calls like: @orm_instance.update_attributes(...) to: @orm_instance.update(...) This goes along with the addition of `ActiveRecord::Base#update`, introduced in cb2bd4aa619d9329c42aaf6d9f8eacc616ce53f4.
* Merge pull request #8887 from rwz/controller-scaffold-codestyleRafael Mendonça França2013-01-102-3/+3
|\ | | | | Controller scaffold codestyle
| * More consistent quotes in scaffold generatorPavel Pravosud2013-01-111-2/+2
| |
| * Changed if ! to unlessPavel Pravosud2013-01-111-1/+1
| |
* | Specified jbuilder versionPavel Pravosud2013-01-111-1/+1
|/
* Include jbuilder by default and rely on its scaffold generator to show json ↵David Heinemeier Hansson2013-01-104-75/+13
| | | | API. The default scaffold will now just create HTML if the user actively opts out of jbuilder
* remove performance tests from the default stackYves Senn2013-01-101-2/+1
|
* extract PerformanceTest into rails-performance_tests gemYves Senn2013-01-105-54/+0
|
* mv README README.rdoc as app template fileXavier Noria2013-01-082-4/+4
|
* Initialize instance variable to remove warningCarlos Antonio da Silva2013-01-071-0/+4
| | | | actions.rb:34: warning: instance variable @in_group not initialized
* new README generated for new appsXavier Noria2013-01-081-252/+16
|
* doc/README_FOR_APP is no longer generatedXavier Noria2013-01-082-10/+0
|
* Use similar comment styleDavid Heinemeier Hansson2013-01-072-2/+2
|
* Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. ↵Jeremy Kemper2013-01-069-28/+35
| | | | Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn'
* Merge pull request #8263 from senny/refactor_plugin_new_generatorYehuda Katz2013-01-065-11/+13
|\ | | | | refactor the naming within plugin new generator
| * refactor the naming within plugin new generatorYves Senn2012-11-185-11/+13
| | | | | | | | | | | | Having a method called `full?`, which checks on :full and :mountable is very confusing. I renamed `full?` to `engine?` and created a `full?` method that only checks the `:full` option
* | This is not that common of a change to warrant top-line billing and you ↵David Heinemeier Hansson2013-01-061-6/+1
| | | | | | | | should read more about the consequences than just toggling a boolean to make best use of it
* | Include the standard reminder that you need to restart for changes in ↵David Heinemeier Hansson2013-01-062-0/+4
| | | | | | | | config/initializers to take effect
* | Update generated app's README [ci skip]Akira Matsuda2013-01-061-7/+5
| | | | | | | | | | | | | | * a controller that destroying Weblogs might be WeblogsController * a controller that indexing Posts might be PostsController * Post.all returns a Relation * modernize Model.inspect results
* | The controller generator invokes assets generator in additionAkira Matsuda2013-01-061-1/+1
| |
* | Fix generated migration file name in model generator USAGEAkira Matsuda2013-01-061-7/+7
| |
* | Move config.filter_parameters to you own initializer fileRafael Mendonça França2013-01-052-3/+2
| | | | | | | | This is very rarely changed and does not deserve to be in application.rb
* | Needless fancy structure that did not anythingDavid Heinemeier Hansson2013-01-051-1/+3
| |
* | Fix indention issue in generated templateDavid Heinemeier Hansson2013-01-051-2/+2
| |
* | Fix indention issue in generated templateDavid Heinemeier Hansson2013-01-051-2/+2
| |
* | No need to give an example where there is generated code right there to ↵David Heinemeier Hansson2013-01-051-5/+1
| | | | | | | | serve as the example
* | config.assets.enabled is now true by defaultDavid Heinemeier Hansson2013-01-052-6/+6
| |
* | Add join table migration generator to usage help.Matthew M. Boedicker2013-01-041-0/+13
| |
* | misleading error message that prompts non-existing commandAkira Matsuda2013-01-051-1/+1
| | | | | | | | [ci skip]
* | get rid of unused .empty_directory files in the app generatorAkira Matsuda2013-01-057-0/+0
| |
* | removed dangling whitespace in generated database ymlAditya Sanghi2013-01-042-4/+4
| |
* | No such feature in Rails anymore. That's Bundler's businessAkira Matsuda2013-01-041-2/+2
| | | | | | | | [ci skip]
* | no, call <%= yield %>Akira Matsuda2013-01-041-1/+1
| |
* | Merge pull request #8731 from amatsuda/readme_dir_treeGuillermo Iguaran2013-01-031-11/+15
|\ \ | | | | | | update directory tree in the generated README
| * | update directory tree in the generated READMEAkira Matsuda2013-01-041-11/+15
| | |
* | | Merge pull request #8705 from amparo-luna/change_update_attributes_to_updateGuillermo Iguaran2013-01-032-3/+3
|\ \ \ | |/ / |/| | Rename update_attributes method to update
| * | Updating default application templates to use update instead of ↵Amparo Luna + Guillermo Iguaran2013-01-032-3/+3
| | | | | | | | | | | | update_attributes