Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #30648 from ydakuka/patch-1 | Javan Makhmali | 2017-09-19 | 3 | -4/+4 |
|\ | | | | | Update action_controller_overview.md [ci skip] | ||||
| * | Update action_controller_overview.md [ci skip] | Yauheni Dakuka | 2017-09-19 | 3 | -4/+4 |
| | | |||||
* | | Merge pull request #30653 from y-yagi/remove_unsued_digits_and_rounded_number | Ryuta Kamizono | 2017-09-19 | 1 | -12/+0 |
|\ \ | |/ |/| | Remove unused `NumberToRoundedConverter#digits_and_rounded_number` | ||||
| * | Remove unused `NumberToRoundedConverter#digits_and_rounded_number` | yuuji.yaginuma | 2017-09-19 | 1 | -12/+0 |
|/ | | | | `digits_and_rounded_number` is unused since #26628 | ||||
* | Merge pull request #30638 from twalpole/capybara_server | Eileen M. Uchitelle | 2017-09-18 | 6 | -20/+11 |
|\ | | | | | Use the default Capybara registered puma server configuration | ||||
| * | Use the default Capybara registered puma server configuration | Thomas Walpole | 2017-09-18 | 6 | -20/+11 |
|/ | |||||
* | Merge pull request #30645 from ↵ | Ryuta Kamizono | 2017-09-18 | 1 | -1/+1 |
|\ | | | | | | | | | yhirano55/use_application_job_instead_of_active_job_base Use ApplicationJob instead of ActiveJob::Base in guide [ci skip] | ||||
| * | Use ApplicationJob instead of ActiveJob::Base in guide [ci skip] | Yoshiyuki Hirano | 2017-09-18 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #30643 from ↵ | Ryuta Kamizono | 2017-09-18 | 1 | -0/+19 |
|\ | | | | | | | | | gerardc/gerardc/guides-add-active-job-retrying-discarding-section Add section to guides for discarding and retrying active jobs [ci skip] | ||||
| * | add section to guides for discarding and retrying active jobs [ci skip] | Gerard Cahill | 2017-09-18 | 1 | -0/+19 |
|/ | |||||
* | Merge pull request #30642 from ydakuka/quotes | Ryuta Kamizono | 2017-09-18 | 3 | -7/+7 |
|\ | | | | | Fix quotes [ci skip] | ||||
| * | Fix quotes [ci skip] | Yauheni Dakuka | 2017-09-18 | 3 | -7/+7 |
| | | |||||
* | | Merge pull request #30641 from ydakuka/js-upcase | Ryuta Kamizono | 2017-09-18 | 1 | -2/+2 |
|\ \ | |/ |/| | Upcase js [ci skip] | ||||
| * | Upcase js [ci skip] | Yauheni Dakuka | 2017-09-18 | 1 | -2/+2 |
|/ | |||||
* | Merge pull request #30640 from ydakuka/patch-1 | Ryuta Kamizono | 2017-09-18 | 1 | -1/+1 |
|\ | | | | | Remove "the" [ci skip] | ||||
| * | Remove "the" [ci skip] | Yauheni Dakuka | 2017-09-18 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #26707 from jcoleman/add_attribute_names_cache_busting_spec | Ryuta Kamizono | 2017-09-18 | 1 | -0/+2 |
|\ | | | | | Add test validating that Model.attribute_names cache is busted | ||||
| * | Add test validating that Model.attribute_names cache is busted | James Coleman | 2016-10-04 | 1 | -0/+2 |
| | | |||||
* | | Remove unused delegation to `reflection.options` in `Preloader::Association` | Ryuta Kamizono | 2017-09-18 | 2 | -4/+1 |
| | | |||||
* | | The name of the key on the associated record is abstracted as ↵ | Ryuta Kamizono | 2017-09-18 | 5 | -23/+14 |
| | | | | | | | | `reflection.join_primary_key` | ||||
* | | The name of the key on the owner is abstracted as `reflection.join_foreign_key` | Ryuta Kamizono | 2017-09-18 | 4 | -17/+5 |
| | | |||||
* | | Extract `associate_records_to_owner` to refactor `Preloader::Association` | Ryuta Kamizono | 2017-09-18 | 3 | -20/+14 |
| | | | | | | | | | | | | | | | | Since we have `Preloader#preload`, `Preloader::Association#preload` is a little confusing. And also, since the `preload` method is an abstract method, it is hard to read where `associated_records_by_owner` is called. This refactors `Preloader::Association` to ease to read where `associated_records_by_owner` is called. | ||||
* | | Merge pull request #30639 from ↵ | George Claghorn | 2017-09-17 | 1 | -2/+0 |
|\ \ | | | | | | | | | | | | | yhirano55/remove_unused_require_in_activestorage_variation Remove unused require in ActiveStorage::Variation | ||||
| * | | Remove unused require in ActiveStorage::Variation | Yoshiyuki Hirano | 2017-09-18 | 1 | -2/+0 |
| | | | |||||
* | | | Fix collided sequence name detection | Ryuta Kamizono | 2017-09-18 | 2 | -1/+44 |
| | | | | | | | | | | | | | | | | | | If collided named sequence already exists, newly created serial column will generate alternative sequence name. Fix sequence name detection to allow the alternative names. | ||||
* | | | Remove the code that swapping `scope` and `options` | Ryuta Kamizono | 2017-09-18 | 2 | -8/+3 |
|/ / | | | | | | | `options` is never assigned to `scope` as long as using splat hash. | ||||
* | | `id` (primary key) is not only an integer [ci skip] | Ryuta Kamizono | 2017-09-18 | 1 | -1/+1 |
| | | |||||
* | | Ensure returning affected objects for class level `update` and `destroy` | Ryuta Kamizono | 2017-09-18 | 2 | -12/+14 |
| | | | | | | | | | | | | | | Class level `update` and `destroy` are using `find` in the internal, so it will raise `RecordNotFound` if given ids cannot find an object even though the method already affect (update or destroy) to any objects. These methods should return affected objects even in that case. | ||||
* | | Place class level `update`, `destroy`, and `delete` in ↵ | Ryuta Kamizono | 2017-09-18 | 3 | -95/+93 |
| | | | | | | | | | | | | | | | | | | | | `Persistence::ClassMethods` The docs are obviously for class level `update`, `destroy`, and `delete`. It should be placed in `Persistence::ClassMethods` rather than `Relation`. And also, these methods are not dependent on relation. So it is not needed to delegate to `all` (plus, `klass.find` is faster than `relation.find`). | ||||
* | | Early return if `records.empty?` in `Preloader#preload` | Ryuta Kamizono | 2017-09-18 | 1 | -3/+3 |
| | | |||||
* | | Don't pass `reflection_scope` to `preload_scope` if `reflection.scope` isn't ↵ | Ryuta Kamizono | 2017-09-18 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | given Related 2b5f5cdd7c1d95716de6a206b6d09ccbb006dc17. If `reflection.scope` isn't given, `reflection_scope` is always empty scope. It is unnecessary to merge it. | ||||
* | | Return `through_scope` only if the scope is not empty scope | Ryuta Kamizono | 2017-09-18 | 1 | -4/+2 |
| | | | | | | | | | | | | | | | | | | Related 2b5f5cdd7c1d95716de6a206b6d09ccbb006dc17. If `through_scope` is empty scope, it is unnecessary to merge it. And also, comparing relations is a little expensive (will cause `build_arel`). It is enough to use `empty_scope?` to determine whether empty scope. | ||||
* | | Remove useless condition in `reset_association` | Ryuta Kamizono | 2017-09-18 | 1 | -2/+1 |
| | | | | | | | | `through_scope` is not empty scope if `options[:source_type]` is given. | ||||
* | | Merge pull request #30637 from ↵ | Ryuta Kamizono | 2017-09-18 | 1 | -1/+1 |
|\ \ | | | | | | | | | | | | | bogdanvlviv/add_round_bracket_in_5_1_release_notes Add missing round bracket in "Ruby on Rails 5.1 Release Notes" guide [ci skip] | ||||
| * | | Add missing round bracket in "Ruby on Rails 5.1 Release Notes" guide | bogdanvlviv | 2017-09-17 | 1 | -1/+1 |
| | | | | | | | | | | | | [ci skip] | ||||
* | | | Merge pull request #30633 from yhirano55/add_mini_magick_to_app_generator | Ryuta Kamizono | 2017-09-18 | 2 | -0/+7 |
|\ \ \ | | | | | | | | | Add `mini_magick` to default `Gemfile` as comment | ||||
| * | | | Add `mini_magick` to default `Gemfile` as comment | Yoshiyuki Hirano | 2017-09-17 | 2 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | * If we want to transform image on ActiveStorage, we should bundle `mini_magick`. * I've added comment block to default `Gemfile` to be easier to install this. | ||||
* | | | | Merge pull request #30632 from dixpac/fix_migration_rollback_docs | Ryuta Kamizono | 2017-09-18 | 1 | -2/+2 |
|\ \ \ \ | | | | | | | | | | | Fix docs describing rollback [ci skip] | ||||
| * | | | | Fix docs describing rollback [ci skip] | dixpac | 2017-09-17 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * `rails db:migrate STEP = 2` will not rollback the migrations, instead `rails db:rollback STEP = 2` will do the rollback. * Also, rewritten `rails db:migrate VERSION` => `rails db:rollback VERSION` for consistency. | ||||
* | | | | | Merge pull request #30630 from ydakuka/patch-1 | Ryuta Kamizono | 2017-09-17 | 1 | -1/+1 |
|\ \ \ \ \ | | | | | | | | | | | | | Update plugins.md [ci skip] | ||||
| * | | | | | Update plugins.md [ci skip] | Yauheni Dakuka | 2017-09-17 | 1 | -1/+1 |
| | |/ / / | |/| | | | |||||
* | | | | | Merge pull request #30628 from yhirano55/add_local_option_to_message_form | Ryuta Kamizono | 2017-09-17 | 1 | -1/+1 |
|\ \ \ \ \ | |/ / / / |/| | | | | Add local option to Message form [ci skip] | ||||
| * | | | | Add local option to Message form [ci skip] | Yoshiyuki Hirano | 2017-09-17 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MessagesController redirects to `GET /message/:id`. * It looks it don't expect XHR request. * `form_with` behaves for XHR by default. * I've added `local: true` option to `form_with`. | ||||
* | | | | | Merge pull request #30626 from yhirano55/fix_activestorage_readme | Kasper Timm Hansen | 2017-09-17 | 3 | -3/+3 |
|\ \ \ \ \ | |_|/ / / |/| | | | | Fix file missing in activestorage's example code [ci skip] | ||||
| * | | | | Fix file missing in activestorage's example code [ci skip] | Yoshiyuki Hirano | 2017-09-17 | 3 | -3/+3 |
| |/ / / | | | | | | | | | | | | | | | | | * File.open("~/face.jpg") raise error: `Errno::ENOENT: No such file or directory @ rb_sysopen - ~/face.jpg` | ||||
* | | | | Merge pull request #30609 from y-yagi/add_tests_for_credentials_command | Kasper Timm Hansen | 2017-09-17 | 1 | -0/+19 |
|\ \ \ \ | |/ / / |/| | | | Add tests for credentials command | ||||
| * | | | Add tests for credentials command | yuuji.yaginuma | 2017-09-15 | 1 | -0/+19 |
| | | | | |||||
* | | | | Merge pull request #30625 from ↵ | Ryuta Kamizono | 2017-09-17 | 12 | -24/+0 |
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | y-yagi/remove_frozen_string_literal_from_templates Remove frozen_string_literal magic comment from templates | ||||
| * | | | Remove frozen_string_literal magic comment from templates | yuuji.yaginuma | 2017-09-17 | 12 | -24/+0 |
| |/ / | | | | | | | | | | Follow up of #30348 | ||||
* | | | Merge pull request #30617 from y-yagi/dont_expose_activestorage_routes | George Claghorn | 2017-09-16 | 2 | -33/+18 |
|\ \ \ | | | | | | | | | Don't expose Active Storage routes |