aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* Backpedal from class-oriented config.queue. Set an actual queue instance.Jeremy Kemper2012-10-122-2/+2
|
* Immediately run queued jobs in tests. Otherwise you have to explicitly drain ↵Jeremy Kemper2012-10-121-2/+2
| | | | the queue to actually deliver your emails.
* Fixing build failuresVijay Dev2012-10-116-14/+14
| | | | | | | Build failed with an error "invalid multibyte char (US-ASCII)" in these files. Apparently, some UTF-8 char disguised as whitespace causes this. Thanks @rafaelfranca
* Merge pull request #7898 from olivierlacan/pg_homebrew_instructionsVijay Dev2012-10-101-1/+3
|\ | | | | Offer instructions for pg gem when installed via Homebrew
| * Offer instructions for pg gem when installed via HomebrewOlivier Lacan2012-10-101-1/+3
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-10-1139-93/+86
|\ \ | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/persistence.rb railties/lib/rails/generators/rails/resource_route/resource_route_generator.rb
| * | copy-edit the email delivery errors commentVijay Dev2012-10-111-1/+1
| | |
| * | update Rails::Generators docs [ci skip]Francesco Rodriguez2012-10-0721-42/+34
| | |
| * | nodoc JS::Generators [ci skip]Francesco Rodriguez2012-10-071-3/+3
| | |
| * | nodoc Erb::Generators [ci skip]Francesco Rodriguez2012-10-074-11/+11
| | |
| * | nodoc CSS::Generators [ci skip]Francesco Rodriguez2012-10-072-6/+6
| | |
| * | nodoc TestUnit::Generators [ci skip]Francesco Rodriguez2012-10-0710-30/+30
| | |
| * | Update ↵Adrien Lamothe2012-10-061-1/+2
| | | | | | | | | | | | railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
* | | fix github url [ci skip]Vijay Dev2012-10-111-1/+1
| | |
* | | Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2012-10-1015-29/+30
|\ \ \ | | |/ | |/|
| * | Update test locationsMike Moore2012-10-0912-20/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional)
| * | Rails.config doesn't exist, it should be Rails.application.config insteadGuillermo Iguaran2012-10-091-3/+3
| | |
| * | Remove duplicate 'the' article in commented lineclaudiob2012-10-081-1/+1
| | | | | | | | | | | | The sentence used to read "at the bottom of the the compiled file"
| * | Merge pull request #7873 from steveklabnik/update_initializerDavid Heinemeier Hansson2012-10-082-8/+7
| |\ \ | | | | | | | | Moving locale stuff from app.rb to an initializer.
| | * | Moving locale stuff from app.rb to an initializer.Steve Klabnik2012-10-082-8/+7
| | | |
* | | | There is already an invitation to use rack-cache in ↵David Heinemeier Hansson2012-10-081-3/+0
|/ / / | | | | | | | | | config/environments/production.rb
* | | Cleanup comments a bit and fuck 80 charactersDavid Heinemeier Hansson2012-10-081-16/+10
| | |
* | | Inline commentDavid Heinemeier Hansson2012-10-081-3/+1
|/ /
* | Encoding already defaults to utf-8 per lib/rails/application/configuration.rb:23David Heinemeier Hansson2012-10-081-3/+0
| |
* | Everyone is running bundler, no need for defensive programming shitDavid Heinemeier Hansson2012-10-081-2/+2
| |
* | Not precompiling your assets for production is a bad idea -- do not encourage itDavid Heinemeier Hansson2012-10-081-6/+2
| |
* | Revert "Use flat_map { } instead of map {}.flatten"Santiago Pastorino2012-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | This reverts commit abf8de85519141496a6773310964ec03f6106f3f. We should take a deeper look to those cases flat_map doesn't do deep flattening. irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten => [1, 3, 1, 2] irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i} => [[1, 3], [1, 2]]
* | Use flat_map { } instead of map {}.flattenSantiago Pastorino2012-10-051-1/+1
| |
* | Comment rack-cache entry on GemfileGuillermo Iguaran2012-10-041-1/+1
| |
* | config.action_dispatch.rack_cache should set explicitly to enable Rack::CacheGuillermo Iguaran2012-10-041-0/+5
| |
* | Strip heredoc to not generate the Gemfile with trailing spacesRafael Mendonça França2012-10-041-2/+2
| |
* | Turn turbolinks on by default for new appsDavid Heinemeier Hansson2012-10-043-4/+11
| |
* | Merge pull request #7794 from guilleiguaran/extract-rack-cacheSantiago Pastorino2012-10-011-0/+4
|\ \ | | | | | | Use Rack::Cache middleware only if is in Gemfile
| * | Add rack-cache to default GemfileGuillermo Iguaran2012-10-011-0/+4
| |/
* / Fixed generated whitespace in routes when using namespaced resource.Jeremy Walker2012-09-291-4/+41
|/
* Remove of an extra line in template configuration file.Geoffrey Roguelon2012-09-241-1/+0
|
* Removed sorting of attribute names in controller generator.Brian Morearty2012-09-231-1/+1
| | | | | | | | | | | | | | | | | | I believe when people use generators, they typically order the parameters on the command line in an order that makes sense to them. Sorting them in the generated code makes the order seem more arbitrary to humans, even though it's less arbitrary to computers. :-) Example: rails g scaffold Post title:string content:text The human chose to put title before content. Sorted attributes in the generated code work but don't match the human's intent: params.require(:posts).permit(:content, :title)
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-09-211-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/configurable.rb activesupport/lib/active_support/core_ext/module/deprecation.rb guides/source/action_controller_overview.md guides/source/active_support_core_extensions.md guides/source/ajax_on_rails.textile guides/source/association_basics.textile guides/source/upgrading_ruby_on_rails.md While resolving conflicts, I have chosen to ignore changes done in docrails at some places - these will be most likely 1.9 hash syntax changes.
| * Remove redundant 'the'.Uģis Ozols2012-09-131-1/+1
| |
* | Change scaffold_generator: Don't use #require or #permit in scaffold if ↵Guillermo Iguaran2012-09-161-0/+4
| | | | | | | | attributes list isn't given
* | Change scaffold_controller to generate and use private method to encapsulate ↵Guillermo Iguaran2012-09-162-2/+12
| | | | | | | | permissible params
* | Remove all references to attr_accessible/protected and old ↵Guillermo Iguaran2012-09-163-13/+0
| | | | | | | | mass_assignment_sanitizers
* | Move queue classes to ActiveSupportSantiago Pastorino2012-09-142-2/+2
| |
* | Merge pull request #7616 from lest/null-session-forgery-protectionMichael Koziarski2012-09-131-1/+1
|\ \ | | | | | | Implement :null_session CSRF protection method
| * | Implement :null_session CSRF protection methodSergey Nartimov2012-09-131-1/+1
| |/ | | | | | | | | | | | | | | It's further work on CSRF after 245941101b1ea00a9b1af613c20b0ee994a43946. The :null_session CSRF protection method provide an empty session during request processing but doesn't reset it completely (as :reset_session does).
* | change app/plugin generators to be more SCM agnosticDerek Prior2012-09-123-61/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Users of other SCM's can now generate rails apps that will add the "empty" directories to source control, but will not have a useless .gitignore or mis-named .gitkeep files. * Change `rails new` and `rails plugin new` generators to name the `.gitkeep` as `.keep` in a more SCM-agnostic way. * Change `--skip-git` option to only skip the `.gitignore` file and still generate the `.keep` files. * Add `--skip-keeps` option to skip the `.keep` files. It closes #2800.
* | Remove the queue configuration from the environments templates since theRafael Mendonça França2012-09-122-4/+1
| | | | | | | | default is the SynchronousQueue.
* | Use the SynchronousQueue as default in production and development.Rafael Mendonça França2012-09-122-4/+4
| | | | | | | | | | We should not let the users use the ThreadedConsumer without know about the risks
* | Action Mailer async flag is true by default using a Synchronous implSantiago Pastorino2012-09-111-3/+0
|/
* require bundle in the app generatorXavier Noria2012-09-011-0/+1
| | | | | | | The app generator is not generally run under bundler, but the Bundler constant is used here. In particular you cannot create --dev apps without this.