aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge pull request #30123 from yhirano55/fix_dummy_app_configurationRafael França2017-08-081-3/+5
|\ \ \ | | | | | | | | Fix dummy_app configuration
| * | | Fix dummy_app configurationYoshiyuki Hirano2017-08-081-3/+5
| |/ /
* / / Use `with_dummy_app?` in gitignoreYoshiyuki Hirano2017-08-081-1/+1
|/ /
* / Fix wrong service name in the storage.ymldixpac2017-08-061-3/+3
|/
* Add missing blank line between `config.active_storage` and `config.action_cable`Ryuta Kamizono2017-08-051-0/+1
|
* Merge pull request #30020 from rails/active-storage-importDavid Heinemeier Hansson2017-08-049-3/+63
|\ | | | | Add Active Storage to Rails
| * Include active_storage in all generated application.rb filesDavid Heinemeier Hansson2017-08-042-0/+2
| | | | | | | | And deal with a temporary test fix until we allow you to skip active storage.
| * Merge branch 'master' into active-storage-importDavid Heinemeier Hansson2017-08-015-7/+8
| |\
| * | Prevent interpolation of ERB elementsDavid Heinemeier Hansson2017-08-011-6/+6
| | |
| * | Add the storage.yml file by defaultDavid Heinemeier Hansson2017-08-011-0/+1
| | |
| * | We moved to storage.ymlDavid Heinemeier Hansson2017-08-012-35/+1
| | |
| * | Add Azure configuration to Active Storage templateMike Gunderloy2017-08-011-0/+8
| | | | | | | | | | | | | | | With Active Storage supporting Azure, we should show people how to set it up. Incorporates the minor changes originally in https://github.com/rails/activestorage/pull/88 as well
| * | Create the skeleton directories needed and ignore accordinglyDavid Heinemeier Hansson2017-07-312-0/+8
| | |
| * | Use config/storage.yml as part of the skeleton and loadingDavid Heinemeier Hansson2017-07-314-5/+44
| | |
| * | Require activestorage per default with asset pipelineDavid Heinemeier Hansson2017-07-311-0/+1
| | |
| * | Include default storage configurationDavid Heinemeier Hansson2017-07-314-0/+35
| | |
* | | Merge pull request #30058 from ↵Rafael França2017-08-041-1/+5
|\ \ \ | | | | | | | | | | | | | | | | y-yagi/use_assert_nil_if_value_is_nil_in_assert_field_default_value_ Use `assert_nil` if `value` is nil in `assert_field_default_value`
| * | | Use `assert_nil` if `value` is nil in `assert_field_default_value`yuuji.yaginuma2017-08-031-1/+5
| | |/ | |/| | | | | | | | | | It is deprecate to specify nil for expect argument of `assert_equal`. Ref: https://github.com/seattlerb/minitest/commit/922bc9151a622cb3ef0b9f170aa09c3bb72c7eb8
* | | Merge pull request #30022 from y-yagi/remove_extra_empty_lineEileen M. Uchitelle2017-08-041-1/+5
|\ \ \ | |/ / |/| | Remove extra empty line
| * | Remove extra empty lineyuuji.yaginuma2017-08-021-1/+5
| |/
* | Merge pull request #30015 from larskanis/use-duktake-on-mingwGuillermo Iguaran2017-08-011-0/+2
|\ \ | | | | | | Use duktape gem as default JS engine on Windows-MINGW
| * | Use duktape gem as default JS engine on Windows-MINGW and MS-Visual-C buildsLars Kanis2017-08-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | The fallback javascript engine on Windows is Windows Script Host (JScript). However this engine isn't able to process the default assets, because it supports ES3 only but the coffeescript compiler requires ES5. Fixes #30014
* | | Merge pull request #30023 from y-yagi/remove_unnecessary_doc_directory_deletionGuillermo Iguaran2017-08-011-1/+0
|\ \ \ | | | | | | | | Remove unnecessary `doc` directory deletion
| * | | Remove unnecessary `doc` directory deletionyuuji.yaginuma2017-08-011-1/+0
| | |/ | |/| | | | | | | Since 553b695, `doc` directory is not created in application.
* | | Merge pull request #30029 from yhirano55/fix_rails_command_commentsSean Griffin2017-08-011-3/+3
|\ \ \ | | | | | | | | [ci skip] Fix rails_command comments
| * | | [ci skip] Fix rails_command commentsYoshiyuki Hirano2017-08-011-3/+3
| | |/ | |/|
* | | Fix rubocop style issues in yarn and spring.rb templates"roberts10002017-07-312-3/+3
| |/ |/|
* | Set Ruby version in Gemfile and .ruby-version by defaultAlberto Almagro2017-07-313-0/+7
|/
* Stop creating ApplicationRecord on model generationLisa Ugray2017-07-241-0/+9
| | | | | | | | | | | | | | When generating models, we created ApplicationRecord in the default location if no file existed there. That was annoying for people who moved it to somewhere else in the autoload path. At this point, the vast majority of apps should have either run the upgrade script or generated a model since upgrading. For those that haven't the error message after generating a new model should be helpful: NameError: uninitialized constant ApplicationRecord To ease friction in that case, this also adds a generator for ApplicationRecord.
* Move generator namespacing to BaseLisa Ugray2017-07-192-36/+37
| | | | | | | Generators need to be aware of namespace to work properly in engines. Methods to help with this lived in Rails::Generators::NamedBase. Moving them to Rails::Generators::Base (which NamedBase inherits from) allows a follow-up in which a namespace aware unnamed generator can be created.
* Add bootsnap to default Gemfile:Burke Libbey2017-07-172-0/+4
| | | | | | Bootsnap precomputes load path resolution and caches ruby ISeq and YAML parsing/compilation, reducing application boot time by approximately 50% on supported configurations.
* Set `represent_boolean_as_integer` via `configuration`yuuji.yaginuma2017-07-161-1/+1
|
* Merge pull request #29645 from y-yagi/check_component_when_run_app_updateKasper Timm Hansen2017-07-161-1/+1
|\ | | | | Do not generate unused components contents in `app:update` task
| * Do not generate unused components contents in `app:update` taskyuuji.yaginuma2017-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Currently, `app:update` generates all contents regardless of the component using in application. For example, even if not using Action Cable, `app:update` will generate a contents related to Action Cable. This is a little inconvenient. This PR checks the existence of the component and does not generate unnecessary contents. Can not check all options in this way. However, it will be able to prevent the generation of unnecessary files.
* | Remove blank lines in setupYoshiyuki Hirano2017-07-161-2/+3
|/
* Change sqlite3 boolean serialization to use 1 and 0Lisa Ugray2017-07-111-0/+4
| | | | | | | | | | | | | | | | | | | | Abstract boolean serialization has been using 't' and 'f', with MySQL overriding that to use 1 and 0. This has the advantage that SQLite natively recognizes 1 and 0 as true and false, but does not natively recognize 't' and 'f'. This change in serialization requires a migration of stored boolean data for SQLite databases, so it's implemented behind a configuration flag whose default false value is deprecated. The flag itself can be deprecated in a future version of Rails. While loaded models will give the correct result for boolean columns without migrating old data, where() clauses will interact incorrectly with old data. While working in this area, also change the abstract adapter to use `"TRUE"` and `"FALSE"` as quoted values and `true` and `false` for unquoted. These are supported by PostreSQL, and MySQL remains overriden.
* Fix typo in method nameyuuji.yaginuma2017-07-111-1/+1
|
* Protect from forgery by defaultLisa Ugray2017-07-102-3/+4
| | | | | | | | Rather than protecting from forgery in the generated ApplicationController, add it to ActionController::Base by config. This configuration defaults to false to support older versions which have removed it from their ApplicationController, but is set to true for Rails 5.2.
* [Railties] require => require_relativeAkira Matsuda2017-07-0132-43/+43
|
* Merge pull request #29418 from dinahshi/scaffold_system_testsEileen M. Uchitelle2017-06-305-11/+68
|\ | | | | Add system tests to generate scaffold
| * Add system tests to generate scaffoldDinah Shi2017-06-305-11/+68
| |
* | Ignore public/assetsamingilani2017-06-271-0/+4
| |
* | Add `railtie.rb` to the plugin generatorTsukuru Tanimichi2017-06-263-2/+14
| |
* | Deprecate an `capify!` method in generators and templatesyuuji.yaginuma2017-06-181-0/+1
| | | | | | | | | | | | | | | | | | The `capify` command has been removed by Capistrano 3 and became to `cap install`. Therefore, the `capify!` method has no meaning in Capistrano 3. I think that should deprecate. Ref: https://github.com/capistrano/capistrano/commit/492793916acf32ffe1604daec6fd4892c8935018
* | Use `require_relative` instead of `require` with full pathbogdanvlviv2017-06-142-2/+2
| |
* | Merge pull request #29425 from gsamokovarov/drop-the-irb-termGuillermo Iguaran2017-06-121-1/+1
|\ \ | | | | | | Drop IRB out of the web-console Gemfile comment
| * | Drop IRB out of the web-console Gemfile commentGenadi Samokovarov2017-06-121-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | We don't provide exactly the same experience as IRB does, so let's not advertize it like that. We can say that it's an interactive console, without further references. I have also followed byebug's comment and changed the calling `console` part. Hopefully, this can hint that the invocation is not view specific and you can use it like the debugger statement. [ci skip]
* | Merge pull request #29263 from assain/default_message_encryptor_to_gcmKasper Timm Hansen2017-06-111-0/+4
|\ \ | |/ |/| Default Message Encryptor Cipher to AES-256-GCM From AES-256-CBC
| * set message_encryptor default cipher to aes-256-gcmAssain2017-06-121-0/+4
| | | | | | | | - Introduce a method to select default cipher, and maintain backward compatibility
* | Ensure MSSQL password uses real ENV var.Ken Collins2017-06-051-2/+2
|/