| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
`CollectionProxy#take` should respect dirty target
|
| |
| |
| |
| |
| | |
`#first`, `#second`, ..., `#last` methods respects dirty target. But
`#take` doesn't respect it. This commit fixes the inconsistent behavior.
|
|\ \
| | |
| | | |
Support multiple indexes on the same column when loading the schema
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
y-yagi/remove_test_mailers_when_skipping_action-mailer
remove "test/mailers" directory when skipping action-mailer
|
| | |/
| |/|
| | |
| | | |
Related to #26146
|
|\ \ \
| | | |
| | | | |
Drop a temporary table before end of a test case
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Style/SpaceBeforeBlockBraces
Style/SpaceInsideBlockBraces
Style/SpaceInsideHashLiteralBraces
Fix all violations in the repository.
|
|\ \ \ \
| | | | |
| | | | | |
Fix ActionController::Live deadlock
|
| | | | |
| | | | |
| | | | |
| | | | | |
after writing to the stream.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Eager autoload ActiveRecord::TableMetadata
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes a bug that can occur when ActiveJob tries to access ActiveRecord.
Specifically, I had an Active Job process fail on Sidekiq with this error:
```
ActiveJob::DeserializationError: Error while trying to deserialize arguments:
uninitialized constant ActiveRecord::Core::ClassMethods::TableMetadata
Did you mean? ActiveRecord::TableMetadata
```
raised by these lines of code:
```
[GEM_ROOT]/gems/activerecord-5.0.0.1/lib/active_record/core.rb:300 :in `table_metadata`
298
299 def table_metadata # :nodoc:
300 TableMetadata.new(self, arel_table)
301 end
302 end
[GEM_ROOT]/gems/activerecord-5.0.0.1/lib/active_record/core.rb:273 :in `predicate_builder`
[GEM_ROOT]/gems/activerecord-5.0.0.1/lib/active_record/core.rb:290 :in `relation`
```
The problem seems to be that, inside ActiveRecord::Core, the `TableMetadata`
class has not been loaded and, therefore, Rails tries to access the constant
`ActiveRecord::Core::ClassMethods::TableMetadata` which does not exist.
Eager loading `ActiveRecord::TableMetadata` should fix the issue.
@rafaelfranca -- see our Campfire discussion
|
|\ \ \ \
| | | | |
| | | | | |
Clarify use of update task on 4.2 and earlier [ci skip]
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Remove `find_nth_with_limit_and_offset` private method
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`find_nth` is protected method, therefore `offset` has not been passed
anywhere. `find_nth_with_limit_and_offset` is unnecessary anymore
because `offset` has not been passed.
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
Remove odd ivar from ActiveRecord::LogSubscriber
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This was used to switch the output colour between log lines, but now the
output colour is based on the type of statement being logged instead.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
AC::Metal is already defining default encoding as UTF 8, let's reuse it.
|
| | |_|_|/ /
| |/| | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
remove useless parameter
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|_|_|/ / /
|/| | | | | | |
fix usage of pluralized word [ci skip]
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Fix `ActiveRecord::FixtureSet` docs [ci skip]
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`ActiveSupport::TestCase` was replaced `ActiveRecord::TestCase` in #26150.
But this docs is for rails apps per se, it should be `ActiveSupport::TestCase`.
See https://github.com/rails/rails/pull/26150#discussion_r74710989.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Reason: See https://github.com/rails/rails/pull/26163#issuecomment-239703322
This reverts commit 39effc857e5c774670d6fad1a26aebcc33c51f0a.
|
|\ \ \ \ \ \
| |_|_|/ / /
|/| | | | | |
Consolidate `ActiveRecord::TestCase` and `ActiveSupport::TestCase` in AR test cases
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
test cases
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #26122
|
|\ \ \ \ \
| | | | | |
| | | | | | |
add more array methods to straight delegation to speed up calling them
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Clarify and fix typos in autoloading disabled section
|
| | |/ / / /
| |/| | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The Guides section about autoloading being disabled was slightly confusing
(#24724) and didn't directly reference the removed feature by name
(config.autoload_paths) making it much harder for someone to search the upgrade
guides for a mention or serendipitously find it via a Google search when running
into autoloading issues.
I also fixed some confusing turns of phrase and a missing word.
/cc @vipulnsward @jvanbaarsen
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It's tough for people without the knowledge of where the `get` and
friends integration test helpers are defined to find documentation
for them. Add a link to the main integration test documentation.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* Give the section a header to distinguish it from the general doc.
* Replace backticks with + signs to fit SDoc.
* Use double quoted strings.
* Clarify how `parsed_body` works — it doesn't depend on `as` anymore.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
Fix the documentation for configuring `enable_fragment_cache_logging`…
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
- It is Action Controller config, not Action View.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Ensure app/mailers is removed when skipping action-mailer
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
Closes #26145
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Add documentation about `ActiveSupport.on_load`
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
[ci skip]
This commit adds some docs that explain how `LazyLoadHooks.on_load` method
works.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Use `ActiveRecord::TestCase` rather than `ActiveSupport::TestCase` in AR test cases
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
test cases
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
Make cache max-age durations self-explanatory
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Pass over changelogs
|
| | | | | | | | |
|
| | | | | | | | |
|