aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* do not generate manifest.js in pluginsyuuji.yaginuma2015-10-121-1/+1
| | | | Since the plugin generator do not generate assets, I think manifest.js also that it unnecessary.
* Merge pull request #21912 from y-yagi/move_prepare_destination_to_publicSean Griffin2015-10-081-1/+2
|\ | | | | change `prepare_destination` to public API [ci skip]
| * change `prepare_destination` to public API [ci skip]yuuji.yaginuma2015-10-081-1/+2
| | | | | | | | | | | | | | `prepare_destination` has been used in the template file for the generator, I think it should be a public API ref: https://github.com/rails/rails/blob/master/railties/lib/rails/generators/test_unit/generator/templates/generator_test.rb#L8
* | remove unused requireyuuji.yaginuma2015-10-081-2/+0
|/ | | | `shellwords` is no longer needed from #20605.
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2015-10-041-2/+2
|\
| * Renamed ‘Return’ to ‘Returns’ [ci skip]Ronak Jangir2015-09-281-2/+2
| |
* | use class to specify the middleware [ci skip]yuuji.yaginuma2015-10-031-1/+1
| | | | | | | | using string for middleware class names is deprecated in 83b767cef90abfc4c2ee9f4b451b0215501fae9a
* | Eliminate overlapping `app/assets` load pathJeremy Daer2015-09-295-16/+16
| | | | | | | | | | | | | | | | | | | | * Move `app/assets/manifest.js` to `app/assets/config/manifest.js`. Avoid the suggestion that you can/should deep-link `stylesheets/foo`. * Pull in all toplevel stylesheets and JavaScripts, not just `application.js` and `.css`. Demonstrate how to use `link_directory` with a specified `.js`/`.css` type. * Fix RAILS_ENV handling in assets tests. * Shush warnings spam from third-party libs that distract from tests.
* | fix application_controller require_dependency path generated by the scaffold ↵yuuji.yaginuma2015-09-201-1/+1
|/ | | | | | | generator This is follow up to #6643. In #6643, the controller generator only had been fixed, in this commit to fix the scaffold generator.
* Bundler tzinfo-data in windows, even first generated new app are MacEric Guo2015-09-151-2/+0
|
* Merge pull request #21568 from amitsuroliya/mysql_version_updateRafael Mendonça França2015-09-132-2/+2
|\ | | | | Updated MySQL documentation link to MySQL latest version 5.7 everywhe…
| * Updated MySQL documentation link to MySQL latest version 5.7 everywhere [ci ↵amitkumarsuroliya2015-09-102-2/+2
| | | | | | | | | | skip] Bumps from `5.6` to `5.7`
* | dev and edge have some common, so factor it out.Eric Guo2015-09-131-10/+7
|/
* remove require of files under support that do not useyuuji.yaginuma2015-08-271-3/+0
| | | | | | I do not know why files under the support has been require. However, under the support even rails application does not use. In addition, since the default under the support file nor is generated, it requires I think not necessary
* smooth move aaron.... :bomb:Aaron Patterson2015-08-201-2/+2
|
* point at rack masterAaron Patterson2015-08-201-0/+2
|
* Migrate to Sprockets 4.Andrei Istratii2015-08-195-4/+40
|
* Fixed syslog example in production config templateprintercu2015-08-171-1/+2
|
* Plugins are generated with the version 0.1.0Daniel Morris2015-08-161-1/+1
| | | | | | The semantic versioning specification uses MAJOR.MINOR.PATCH – it would make more sense to set the version to 0.1.0 for initial development since a patch release cannot be created before a minor feature release.
* Merge pull request #21021 from sgrif/sg-no-routes-commentSean Griffin2015-08-121-54/+1
|\ | | | | Replace the giant comment in routes.rb with a link to the guides
| * Replace the giant comment in routes.rb with a link to the guidesSean Griffin2015-07-241-54/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This comment not only serves no purpose, but in my experience is actively detrimental to new developers getting started with Rails. Expereinced developers just end up deleting this comment, and are annoyed that they had to take this step. I also spend a lot of time mentoring brand new developers, and a consistent theme I've seen is that this comment just ends up intimidating them, and making them think it's dangerous to edit this file. One of my students just said this (due to the number of comments which even new developers don't actually read, they just see it as a sign that this thing is "dangerous"). > I don't edit any file that Rails generates for me, until my instructor > says that it's OK to do so. Realistically, this comment adds 0 value. We have very good documentation, which we can just link to instead. If someone is truly new enough to benefit from this info, they presumably just ran `gem install rails`, and have an internet connection that they can use to read the routing guide. The choice of language here was very specific. I chose "the DSL available" over "what is possible", because a consistent theme I've noticed among my students is that they aren't aware that this is actually a Ruby file, and can write any Ruby code here that they want. This file is not the only offender, but is by far the biggest point of pain that I've seen, and felt it was a good spot to open this discussion.
* | Merge pull request #21176 from y-yagi/fix_scaffold_tests_inside_api_engineRafael Mendonça França2015-08-091-1/+4
|\ \ | | | | | | make generated scaffold functional tests work inside API engines
| * | make generated scaffold functional tests work inside API enginesyuuji.yaginuma2015-08-091-1/+4
| | | | | | | | | | | | | | | * set engine's route in setup * use fixture with engine namespace
* | | WhitespacesRafael Mendonça França2015-08-091-1/+1
|/ /
* | Added bin/update script to update application automaticallyMehmet Emin İNAÇ2015-08-071-0/+28
| | | | | | | | | | | | | | | | | | | | use system! fix changelog use bundle check first and use rake use system instead system! for bundle check
* | Merge pull request #21043 from ↵Rafael Mendonça França2015-08-061-0/+1
|\ \ | | | | | | | | | | | | y-yagi/loading_fixtures_in_engine_integration_tests set the correct path to `ActionDispatch::IntegrationTest.fixture_path`
| * | set the correct path to `ActionDispatch::IntegrationTest.fixture_path`yuuji.yaginuma2015-07-281-0/+1
| |/ | | | | | | | | `ActionDispatch::IntegrationTest.fixture_path` set by `test_help.rb`, but if the engine, path under the dummy is will be set, fixtures under test was not loaded.
* | Merge pull request #20961 from ccallebs/add-dev-mode-cachingKasper Timm Hansen2015-08-051-2/+12
|\ \ | | | | | | Add dev caching toggle / server options
| * | Add rake dev:cache task to enable dev mode caching.Chuck Callebs2015-08-041-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken from @Sonopa's commits on PR #19091. Add support for dev caching via "rails s" flags. Implement suggestions from @kaspth. Remove temporary cache file if server does not have flags. Break at 80 characters in railties/CHANGELOG.md Remove ability to disable cache based on server options. Add more comprehensive options: --dev-caching / --no-dev-caching
* | | Inform user to add script in correct location into the application.js ↵Mehmet Emin İNAÇ2015-08-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | manifest file [ci skip] use it change the warning
* | | Merge pull request #21104 from atul-shimpi/masterYves Senn2015-08-032-2/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | Inform user to add styles in correct location in application.css [ci skip]
| * | | Inform user to add styles in correct location in application.cssatul-shimpi2015-08-032-2/+4
|/ / /
* | | Merge pull request #20992 from JuanitoFatas/fix/bin-setup-scriptYves Senn2015-07-311-1/+1
|\ \ \ | |/ / |/| | Don't fail when checking dependencies in bin/setup script
| * | Don't fail when checking dependencies in bin/setup scriptJuanito Fatas2015-07-231-1/+1
| |/
* | Merge pull request #20759 from vngrs/fix_wrong_docRafael Mendonça França2015-07-271-2/+2
|\ \ | | | | | | Change wrong usage in documentation about autoload_paths [ci skip]
| * | Change wrong usage in documentation about autoload_paths [ci skip]Mehmet Emin İNAÇ2015-07-021-2/+2
| | | | | | | | | | | | We can't use this configuration outside of the application.rb
* | | Enable the `api_only` option for API plugins' generatorsRobin Dupret2015-07-231-0/+1
| | | | | | | | | | | | | | | | | | | | | This way, running a generator inside the plugin's directory, files that are not relevant won't be generated (e.g. views or assets). This won't interfere with the application's generators configuration.
* | | Generate an API dummy application for API pluginsRobin Dupret2015-07-231-0/+1
| | |
* | | Make ApplicationController inherit from AC::API for API pluginsRobin Dupret2015-07-231-1/+1
| | |
* | | Skip assets, helpers and views generation for API pluginsRobin Dupret2015-07-231-8/+15
| | |
* | | Add the `--api` option for the plugin generatorRobin Dupret2015-07-231-0/+7
| |/ |/|
* | Merge pull request #20926 from rsanheim/fail-fast-bin-setupRafael Mendonça França2015-07-211-5/+9
|\ \ | | | | | | add system! to fail fast in bin/setup
| * | add system! to fail fast in bin/setupRob Sanheim2015-07-181-5/+9
| | |
* | | Merge pull request #20819 from y-yagi/rails_api_gemfileRafael Mendonça França2015-07-211-1/+3
|\ \ \ | | | | | | | | remove `web-console` from API app generated Gemfile
| * | | remove `web-console` from API app generated Gemfileyuuji.yaginuma2015-07-091-1/+3
| | | |
* | | | titleizing the New LinkThiago Pinto2015-07-201-1/+1
| |/ / |/| |
* | | [skip ci] Lookup can be a noun but it is not a verbJon Atack2015-07-171-3/+3
|/ / | | | | | | Various grammar corrections and wrap to 80 characters.
* | Merge pull request #20767 from y-yagi/remove_unnecessary_fixture_methodYves Senn2015-07-061-4/+0
|\ \ | | | | | | remove unnecessary loading fixtures from `navigation_test.rb`
| * | remove unnecessary loading fixtures from `navigation_test.rb`yuuji.yaginuma2015-07-031-4/+0
| |/ | | | | | | | | it has been corrected in 0176aef1ebaa9f69001c7045a51727a8ea9b61b8 as for loading of fixtures in `test_helper.rb`, loading fixtures for each test is unnecessary.
* / Display a more human readable list of reserved namesRobin Dupret2015-07-012-2/+6
|/ | | | | Interpolating an array inside a String will call #inspect on it. Let's call #join to display a more human-readable error message.