aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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
* | | test PATCH method for update action in generated scaffold controller test ↵Akira Matsuda2013-01-031-1/+1
|/ / | | | | | | rather than PUT
* | Add -B alias for --skip-bundleJiri Pospisil2013-01-011-1/+1
| |
* | Add active_support/testing/autorunRafael Mendonça França2012-12-311-1/+1
| | | | | | | | | | minitest/autorun load minitest/spec polluting the global namespace with the DSL that we don't want on Rails
* | Revert "Install binstubs by default"Jeremy Kemper2012-12-281-1/+1
| | | | | | | | | | | | This reverts commit f34c27a452418d8aa17f92bb0fd7ae97b5f7e252. We'll be taking a different tack on this with new `bundle binstubs <gem>` support.
* | Revert "Detect rbenv and update the shebang"Jeremy Kemper2012-12-281-8/+1
| | | | | | | | | | This reverts commit 7173c4f931c9026bd3bc0b644d93dae744433f09. This reverts commit a562f9fa09967eba26dff1c3bc8aa85b6f0a72ff.
* | Consistent punctuation for @jaroslawr :bowtie:Jeremy Kemper2012-12-271-1/+1
| |
* | Merge pull request #8616 from senny/8612_respect_yaml_keywordsRafael Mendonça França2012-12-262-4/+16
|\ \ | | | | | | quote column names in generated fixture files
| * | quote column names in generated fixture filesYves Senn2012-12-262-4/+16
| | |
* | | Revert "Ignore /bin on new apps" -- given the move to default binstubs, we ↵David Heinemeier Hansson2012-12-261-4/+3
|/ / | | | | | | | | | | want you to check those in! This reverts commit 35c554f0bf518e1068e79002a462c3deba649e9b.
* | Fix spacing regression in scaffold generatorYehuda Katz2012-12-221-1/+3
| |