Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Test that ActiveStorage::Blob#purge fails when attachments exist | George Claghorn | 2018-07-20 | 1 | -0/+8 |
| | |||||
* | Add a foreign-key constraint to the attachments table for blobs | George Claghorn | 2018-07-19 | 3 | -2/+3 |
| | |||||
* | Delete attachment before purging blob | George Claghorn | 2018-07-19 | 1 | -2/+2 |
| | |||||
* | Destroy blob record before deleting stored data | George Claghorn | 2018-07-19 | 1 | -1/+1 |
| | |||||
* | Merge pull request #33394 from kamipo/avoid_extra_scoping | Eileen M. Uchitelle | 2018-07-19 | 3 | -2/+8 |
|\ | | | | | Avoid extra scoping in delegating to klass methods in the `scope` block | ||||
| * | Avoid extra scoping in delegating to klass methods in the `scope` block | Ryuta Kamizono | 2018-07-19 | 3 | -2/+8 |
| | | | | | | | | | | | | | | | | | | | | Since #29301, delegating to klass methods in the `scope` block would cause extra scoping by the receiver itself. The extra scoping would always override intermediate scoping like `unscoped` and caused the regression #33387. To keep the original scoping behavior, should avoid the extra scoping in the `scope` block. Fixes #33387. | ||||
* | | Merge pull request #33391 from utilum/method_call_assertions_instead_of_mocha | Ryuta Kamizono | 2018-07-19 | 5 | -98/+154 |
|\ \ | |/ |/| | Use MethodCallAssertions instead of Mocha#expects | ||||
| * | Use MethodCallAssertions instead of Mocha#expects | utilum | 2018-07-19 | 5 | -98/+154 |
| | | | | | | | | | | | | | | | | | | | | Many calls to `Mocha#expects` preceded the introduction of `ActiveSupport::Testing::MethodCallAssertions` in 53f64c0fb, and many are simple to replace with `MethodCallAssertions`. This patch makes all these simple replacements. Step 5 in #33162 | ||||
* | | Fix `insert_fixtures_set` to be restored original connection flags | Ryuta Kamizono | 2018-07-19 | 3 | -34/+116 |
| | | | | | | | | | | | | #33363 has two regressions. First one is that `insert_fixtures_set` is failed if flags is an array. Second one is that connection flags are not restored if `set_server_option` is not supported. | ||||
* | | Link between ActiveStorage::Blob#purge, #purge_later, and #delete [ci skip] | George Claghorn | 2018-07-18 | 1 | -5/+5 |
| | | |||||
* | | Clarify the ActiveStorage::Attachment#purge and #purge_later docs | George Claghorn | 2018-07-18 | 1 | -2/+2 |
|/ | | | | Link to the corresponding ActiveStorage::Blob methods, whose docs more accurately describe their effects. [ci skip] | ||||
* | Revert "Short circuit the scoping delegation for `relation.all`" | Ryuta Kamizono | 2018-07-19 | 1 | -1/+0 |
| | | | | | | | This reverts commit eb807384c81a6e086b17a576755e992e6c4c685e. If the current scope is affected by the `unscoped` block, `all` won't be the same with `spawn`. | ||||
* | Merge pull request #33384 from ↵ | Rafael França | 2018-07-18 | 1 | -1/+1 |
|\ | | | | | | | | | lanzhiheng/add-situation-for-belongs-to-associations-note [ci skip] Add situation for belongs to association. | ||||
| * | Add situation for belongs to association. [ci skip] | lanzhiheng | 2018-07-18 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #33363 from ahorek/transaction_bug | Rafael França | 2018-07-18 | 2 | -5/+38 |
|\ \ | | | | | | | use set_server_option if possible | ||||
| * | | use set_server_option if possible | pavel | 2018-07-15 | 2 | -5/+38 |
| | | | |||||
* | | | Revert "Merge pull request #33385 from ↵ | Rafael Mendonça França | 2018-07-18 | 1 | -16/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lanzhiheng/add-example-for-has-and-belongs-to-many-association" This reverts commit 3c8c410012e34709f3fdfe5b6a571353b20d0c56, reversing changes made to daee94da99605d89854660b63d98e4c1dc9a979d. We have this information below in the reference section for has_and_belongs_to_many. | ||||
* | | | Merge pull request #31320 from gtqnchev/to_form_params-fix | Rafael França | 2018-07-18 | 3 | -3/+21 |
|\ \ \ | | | | | | | | | Fix issue with `button_to`'s `to_form_params` | ||||
| * | | | Fix issue with `button_to`'s `to_form_params` | Georgi Georgiev | 2018-07-16 | 3 | -3/+21 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `button_to` was throwing exception when invoked with `params` hash that contains symbol and string keys. The reason for the exception was that `to_form_params` was comparing the given symbol and string keys. The issue is fixed by turning all keys to strings inside `to_form_params` before comparing them. | ||||
* | | | | Merge pull request #33385 from ↵ | Rafael França | 2018-07-18 | 1 | -0/+16 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | lanzhiheng/add-example-for-has-and-belongs-to-many-association [ci skip] Add example for `has-and-belongs-to-many` association. | ||||
| * | | | | Add example for `has-and-belongs-to-many` association. [ci skip] | lanzhiheng | 2018-07-18 | 1 | -0/+16 |
| | |_|/ | |/| | | |||||
* | | | | Merge pull request #33358 from azbshiri/summer-time | Rafael França | 2018-07-18 | 2 | -2/+25 |
|\ \ \ \ | |/ / / |/| | | | Normalize the date component to 2000-01-01 automatically | ||||
| * | | | Test DST both in local and utc timezone | Alireza Bashiri | 2018-07-17 | 1 | -2/+24 |
| | | | | | | | | | | | | | | | | | | | | Also? Updated failing test. | ||||
| * | | | Implement change() to convert to "2001-01-01" first | Sean Prashad | 2018-07-17 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | (cherry picked from commit da34d4766c33a042aeb92778a492fa810ec23001) | ||||
* | | | | Merge pull request #33375 from utilum/stub_leftover | Rafael França | 2018-07-17 | 3 | -26/+46 |
|\ \ \ \ | | | | | | | | | | | Remove/Replace some more calls to Mocha#stubs | ||||
| * | | | | Replace some more Mocha#stub calls with Minitest | utilum | 2018-07-17 | 3 | -25/+46 |
| | | | | | | | | | | | | | | | | | | | | Missed these in preparing #33337 | ||||
| * | | | | Remove unnecessary Mocha stub | utilum | 2018-07-17 | 1 | -1/+0 |
| |/ / / | | | | | | | | | | | | | Should have been removed in #33309. | ||||
* | | | | Remove unnecessary tap | George Claghorn | 2018-07-17 | 1 | -10/+8 |
| | | | | |||||
* | | | | Fix replacing many attachments via assign and attach | George Claghorn | 2018-07-17 | 2 | -0/+40 |
|/ / / | |||||
* | | | Correct test name | George Claghorn | 2018-07-16 | 1 | -1/+1 |
| | | | |||||
* | | | Fix that successive ActiveStorage::Attached::Many#attach calls would ↵ | George Claghorn | 2018-07-16 | 2 | -27/+22 |
| | | | | | | | | | | | | overwrite previous attachments | ||||
* | | | Test removing attachments via #attach | George Claghorn | 2018-07-16 | 2 | -12/+59 |
| | | | |||||
* | | | Merge pull request #33370 from bogdanvlviv/follow-up-33337 | Ryuta Kamizono | 2018-07-16 | 3 | -15/+11 |
|\ \ \ | |/ / |/| | | Clarify test cases | ||||
| * | | Clarify test cases | bogdanvlviv | 2018-07-15 | 3 | -15/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove extra stub of `ActiveRecord::Base::connection` in `activerecord/test/cases/tasks/mysql_rake_test.rb`. Remove extra stub of `File::exist?` in `activerecord/test/cases/tasks/sqlite_rake_test.rb`. `ActiveRecord::Base::establish_connection` shouldn't return `true` in test cases. Related to https://github.com/rails/rails/pull/33337. | ||||
* | | | Merge pull request #33364 from lanzhiheng/fix-document-in-model-validator | Ryuta Kamizono | 2018-07-16 | 1 | -18/+0 |
|\ \ \ | | | | | | | | | | | | | | | | | Modify the expression's issue for `errors.add` document. [ci skip] | ||||
| * | | | Remove the invalid usage document about `errors`. [ci skip] | lanzhiheng | 2018-07-16 | 1 | -18/+0 |
| | | | | |||||
* | | | | Restore inadvertently-removed fallback | George Claghorn | 2018-07-15 | 2 | -1/+8 |
| | | | | |||||
* | | | | Support HTTP Range downloads from disk | George Claghorn | 2018-07-15 | 3 | -20/+30 |
| | | | | | | | | | | | | | | | | Closes #32193. | ||||
* | | | | Merge pull request #33337 from utilum/stub_with_minitest_not_mocha | Ryuta Kamizono | 2018-07-16 | 6 | -461/+699 |
|\ \ \ \ | | |/ / | |/| | | Stub with minitest not mocha | ||||
| * | | | Stub with Minitest instead of Mocha | utilum | 2018-07-15 | 6 | -461/+699 |
| | |/ | |/| | | | | | | | Step 4 in #33162 | ||||
* | | | Merge pull request #33366 from ahorek/fix_selector | Ryuta Kamizono | 2018-07-16 | 1 | -1/+7 |
|\ \ \ | | | | | | | | | fix test_should_impose_childless_html_tags_in_html failure with JRuby | ||||
| * | | | test_should_impose_childless_html_tags_in_html failure with JRuby | pavel | 2018-07-15 | 1 | -1/+7 |
| |/ / | |||||
* | | | Merge pull request #33365 from ↵ | Ryuta Kamizono | 2018-07-16 | 1 | -4/+4 |
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | lanzhiheng/fix-document-issue-about-active-record-callbacks-after_touch Fix document issue in active record callback about `after_touch` hook. [ci skip] | ||||
| * | | Fix document issue in active record callback about `after_touch` hook. | lanzhiheng | 2018-07-15 | 1 | -4/+4 |
|/ / | |||||
* | | Merge pull request #33361 from jhubert/bugfix/fix-added-string-attributes | Eileen M. Uchitelle | 2018-07-14 | 2 | -1/+7 |
|\ \ | | | | | | | Fix regression in use of string attribute in the added? method | ||||
| * | | Ensure attribute is a symbol in the added? method | Jeremy Baker | 2018-07-14 | 2 | -1/+7 |
| | | | |||||
* | | | Merge pull request #33360 from ↵ | Eileen M. Uchitelle | 2018-07-14 | 1 | -0/+6 |
|\ \ \ | |/ / |/| | | | | | | | | jedrekdomanski/Update-active-record-querying-readme Update documentation for #pluck method [ci skip] | ||||
| * | | Update documentation for #pluck method [ci skip] | Jędrek Domański | 2018-07-14 | 1 | -0/+6 |
|/ / | |||||
* | | Clear attachment changes on reload | George Claghorn | 2018-07-13 | 3 | -0/+20 |
| | | |||||
* | | Implement ActiveStorage::Attached::{One,Many}#attach in terms of changes | George Claghorn | 2018-07-13 | 7 | -67/+183 |
| | |