aboutsummaryrefslogtreecommitdiffstats
path: root/railties
Commit message (Collapse)AuthorAgeFilesLines
* Explain reason for eager loadingDavid Heinemeier Hansson2015-12-181-0/+1
|
* Explain Redis' role in Action CableDavid Heinemeier Hansson2015-12-181-0/+1
|
* Bring comment in line with rest of initializersDavid Heinemeier Hansson2015-12-181-2/+2
|
* Explain the concept of config initializers for backwards compatibilityDavid Heinemeier Hansson2015-12-183-2/+5
|
* Fix spacingDavid Heinemeier Hansson2015-12-181-1/+1
|
* These options are not changed nearly often enough to warrant inclusion like ↵David Heinemeier Hansson2015-12-181-8/+0
| | | | this at a high level
* Better explanationDavid Heinemeier Hansson2015-12-181-2/+6
|
* Use the rails command, not rake, for all rails commandsDavid Heinemeier Hansson2015-12-182-6/+6
|
* README.md in the app is now used to describe the app itself, not RailsDavid Heinemeier Hansson2015-12-181-1/+0
|
* More sensible ordering with the more important options firstDavid Heinemeier Hansson2015-12-181-12/+12
|
* List the major frameworks you can remove togetherDavid Heinemeier Hansson2015-12-181-3/+3
|
* fix indentation of generated controller testyuuji.yaginuma2015-12-182-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | ``` # before module Bukkits class UsersControllerTest < ActionDispatch::IntegrationTest include Engine.routes.url_helpers setup do @user = bukkits_users(:one) end ``` ``` # after module Bukkits class UsersControllerTest < ActionDispatch::IntegrationTest include Engine.routes.url_helpers setup do @user = bukkits_users(:one) end ```
* Ignore Byebug command history fileAkira Matsuda2015-12-181-0/+3
| | | | | This file is generated by a gem that is bundled by default in the generated Rails app, just like .sqlite3 files. Hence it might be natural to be ignored here rather than in each developer's .gitignore_global.
* Use released rackRafael Mendonça França2015-12-181-2/+1
|
* Merge pull request #22642 from seuros/remove-mysql-adapterMatthew Draper2015-12-181-3/+3
|\ | | | | | | Remove legacy mysql adapter
| * Remove legacy mysql adapterAbdelkader Boudih2015-12-171-3/+3
| |
* | Use release sprockets-railsRafael Mendonça França2015-12-171-1/+0
| |
* | Merge pull request #22627 from rails/application-mailer-by-defaultRafael França2015-12-1712-42/+29
|\ \ | | | | | | ApplicationMailer should be generated by default just like every other Application* parent
| * | ApplicationMailer should be generated by default just like every other ↵David Heinemeier Hansson2015-12-1711-41/+28
| | | | | | | | | | | | Application* parent
| * | Fix warningRafael Mendonça França2015-12-171-1/+1
| |/
* / Use released arelRafael Mendonça França2015-12-171-1/+0
|/
* Generate API doc for actioncableArun Agrawal2015-12-171-0/+7
|
* Merge pull request #22068 from y-yagi/change_default_to_markdownRafael França2015-12-177-9/+13
|\ | | | | README.rdoc -> README.md for newly generated plugins
| * README.rdoc -> README.md for newly generated pluginsyuuji.yaginuma2015-12-177-9/+13
| | | | | | | | I think Markdown is nowadays a better default.
* | Merge pull request #22629 from ↵Rafael França2015-12-171-1/+0
|\ \ | | | | | | | | | | | | prathamesh-sonpatki/kill-extra-line-in-manifest-js Kill extra newline at the start of generated manifest.js
| * | Kill extra newline at the start of generated manifest.jsPrathamesh Sonpatki2015-12-171-1/+0
| | |
* | | Puma 2.15.3 actually works fineDavid Heinemeier Hansson2015-12-171-1/+1
| |/ |/|
* | Deal with leading CR when its not a mountable engineDavid Heinemeier Hansson2015-12-171-1/+1
| |
* | Include example of allowed_request_originsDavid Heinemeier Hansson2015-12-171-1/+2
|/
* Fix testsDavid Heinemeier Hansson2015-12-171-2/+0
|
* Don't mount the ActionCable server by defaultDavid Heinemeier Hansson2015-12-172-2/+2
| | | | | | Since we require you to enable it on the client-side, let us do the same on the server-side. Then you’re not running an EventMachine unless you need to.
* No longer uses keep now that we have ApplicationRecordDavid Heinemeier Hansson2015-12-161-1/+0
|
* Fix testDavid Heinemeier Hansson2015-12-161-1/+10
|
* No need to check for pumaRafael Mendonça França2015-12-161-1/+1
| | | | Rack::Server already does it work for us if the server is installed.
* Fix test now that cable is in there by default tooDavid Heinemeier Hansson2015-12-161-1/+1
|
* Avoid Action Cable stubs on --skip-action-cableDavid Heinemeier Hansson2015-12-163-3/+7
| | | | | Still missing the stuff in app/ – we need to basically switch from a * match to specifically picking out what we need.
* No longer needed now that we prefill with app/models/application_record.rbDavid Heinemeier Hansson2015-12-161-1/+0
|
* Generate all the ApplicationCable stubs by default, like all other ↵David Heinemeier Hansson2015-12-165-1/+20
| | | | Application* stubs
* Saner incrementsDavid Heinemeier Hansson2015-12-161-3/+3
|
* Use puma as the default development server, if availableDavid Heinemeier Hansson2015-12-162-4/+4
|
* Eager loading is required for Action Cable and we should use the logging tooDavid Heinemeier Hansson2015-12-161-0/+4
|
* Only mount the ActionCable server if ApplicationCable has been definedDavid Heinemeier Hansson2015-12-161-1/+1
|
* By default, mount Action Cable on the routerDavid Heinemeier Hansson2015-12-161-0/+3
|
* Add default redis config for Action CableDavid Heinemeier Hansson2015-12-162-0/+9
|
* Merge branch 'master' into merge-action-cableRafael Mendonça França2015-12-1620-69/+102
|\
| * Use sprockets 3 in the Rails 5 releaseRafael Mendonça França2015-12-163-8/+7
| |
| * Merge pull request #22567 from gsamokovarov/introduce-application-recordRafael França2015-12-167-1/+29
| |\ | | | | | | Introduce ApplicationRecord, an Active Record layer supertype
| | * Introduce ApplicationRecord, an Active Record layer supertypeGenadi Samokovarov2015-12-167-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's pretty common for folks to monkey patch `ActiveRecord::Base` to work around an issue or introduce extra functionality. Instead of shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can hold all those custom work the apps may need. Now, we don't wanna encourage all of the application models to inherit from `ActiveRecord::Base`, but we can encourage all the models that do, to inherit from `ApplicationRecord`. Newly generated applications have `app/models/application_record.rb` present by default. The model generators are smart enough to recognize that newly generated models have to inherit from `ApplicationRecord`, but only if it's present.
| * | Run railties generated app tests in test enveileencodes2015-12-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Running railties generated app tests in development env can cause unintended consequences. The environments are different and tests aren't meant to be run in development mode. The changes to the generator exposed this issue where the random test order in the generated apps could cause problems when those tests are run in development mode. Particularly we saw failures in `railties/test/application/rake_test.rb` generated apps that used the scaffold to create applications and then run the migration and immediately run the tests. The error we saw was `ActiveRecord::RecordNotFound: Couldn't find User with 'id'=980190962` and seemed to only occur if the destroy test ran first. I'm not entirely sure _why_ this causes that error to be thrown but I believe it is related to the environments being different.
| * | Update test generators to use ActionDispatch::IntegrationTestAbdelkader Boudih2015-12-158-49/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Rails 5.1 `ActionController::TestCase` will be moved out of Rails into it's own gem. Please use `ActionDispatch::IntegrationTest` going forward. This changes the generators to use `ActionDispatch::IntegrationTest` and the required URL setup (rather than symbols) for each of the controller actions. Updated fix to #22076.