aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Use sass compressor as the default CSS compressor"Guillermo Iguaran2013-02-251-1/+1
| | | | | | | This reverts commit 3eef1c7c5d0c4538efb9e061b6fe68011f0352b1. The css compressor should be set in sass-rails plugin. Check https://github.com/rails/sass-rails/commit/339529f9f6433047df6358c0439e6641cb74f045 for the fix.
* Use sass compressor as the default CSS compressorRafael Mendonça França2013-02-251-1/+1
| | | | | | | With the new sprockets-rails we need to explicitly set the CSS compressor. See https://github.com/rails/sprockets-rails#changes-from-rails-3x
* Merge pull request #9401 from sikachu/master-remove-builder-optionRafael Mendonça França2013-02-241-14/+0
|\ | | | | Remove `--builder` option from `rails` command
| * Remove `--builder` option from `rails` commandPrem Sichanugrist2013-02-241-14/+0
| | | | | | | | | | | | | | Ability to use a custom builder by passing `--builder` (or `-b`) has been removed. Consider using application template instead. See this guide for more detail: http://guides.rubyonrails.org/rails_application_templates.html
* | Merge pull request #9400 from senny/remove_auto_explain_threshold_in_secondsXavier Noria2013-02-242-10/+0
|\ \ | | | | | | remove config.auto_explain_threshold_in_seconds
| * | remove AR auto-explain (config.auto_explain_threshold_in_seconds)Yves Senn2013-02-242-10/+0
| |/ | | | | | | | | | | | | | | | | | | We discussed that the auto explain feature is rarely used. This PR removes only the automatic explain. You can still display the explain output for any given relation using `ActiveRecord::Relation#explain`. As a side-effect this should also fix the connection problem during asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie` forced a connection.
* / Use sprockets-rails 2.0.0.rc3 in new appsGuillermo Iguaran2013-02-241-1/+1
|/
* Revert "move config.assets.precompile into config/application.rb"Yves Senn2013-02-242-4/+6
| | | | | | | This reverts commit 304f4d4c25ccabdbf97d37dd7a92a54d0b63a9c9. As it turns out everything should behave as it did and we don't need to move this configuration option.
* 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]