1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/lib/active_record
Jean Boussier 7b5096947e Call Executor#wrap around each test
It's `Rails.application.executor.wrap` that is responsible for
clearing request/job local state such as `CurrentAttributes`.

Instead of including an ad hoc helper to clear `CurrentAttributes` it's
better to run the executor so we properly clear other states as well.

However it means all executor hooks now need to be re-entrant.
2021-10-28 15:18:29 +02:00
..
associations Fix STI in available_records causing new instances of records to be loaded from database 2021-10-27 13:51:10 +00:00
attribute_methods Check for default function before attribute changes for partial inserts 2021-10-26 18:25:21 +02:00
coders
connection_adapters Don't SELECT * FROM information_schema.tables 2021-10-27 14:42:27 -05:00
database_configurations Add support for setting the schema/structure dump filepath in the config 2021-10-26 10:09:21 -04:00
encryption Validate encrypted message formats 2021-10-19 20:14:22 -07:00
fixture_set
locale
locking Accept optional transaction args to #with_lock 2021-09-23 09:43:00 -04:00
middleware Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
migration Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
railties Clean up load_schema options 2021-10-21 15:31:12 -04:00
relation Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
scoping Merge branch 'main' into remove_scope_overwrite_warning 2021-09-14 19:57:23 -07:00
tasks Add support for setting the schema/structure dump filepath in the config 2021-10-26 10:09:21 -04:00
type
type_caster
validations Fixed guide to case_sensitive option for Activerecord uniqueness validator [skip ci] 2021-09-23 00:20:39 +09:00
aggregations.rb
association_relation.rb
associations.rb Automatically infer inverse_of with scopes 2021-10-04 09:42:04 -04:00
asynchronous_queries_tracker.rb Call Executor#wrap around each test 2021-10-28 15:18:29 +02:00
attribute_assignment.rb
attribute_methods.rb Filter virtual columns from the attribute names 2021-09-19 22:04:53 +02:00
attributes.rb
autosave_association.rb Make inversed association stale after updating id 2021-10-13 15:52:05 -04:00
base.rb
callbacks.rb
connection_adapters.rb
connection_handling.rb Add ActiveRecord::Base.prohibit_shard_swapping 2021-10-18 11:26:04 -04:00
core.rb
counter_cache.rb
database_configurations.rb
delegated_type.rb
destroy_association_async_job.rb
disable_joins_association_relation.rb
dynamic_matchers.rb
encryption.rb
enum.rb Add tests for enum with strings 2021-10-25 13:34:28 -04:00
errors.rb Remove message from ActiveRecord::Rollback example 2021-10-05 16:02:28 +02:00
explain.rb
explain_registry.rb
explain_subscriber.rb
fixtures.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
future_result.rb Use Process.clock_gettime unit argument to save some floating point multiplications 2021-10-21 10:05:32 +02:00
gem_version.rb Preparing for 7.0.0.alpha2 release 2021-09-15 18:22:51 -04:00
inheritance.rb Delete AS::Dependencies.safe_constantize 2021-08-20 17:51:05 +02:00
insert_all.rb Allow record_timestamps override on {in,up}sert_all 2021-10-12 19:54:11 -04:00
integration.rb
internal_metadata.rb
legacy_yaml_adapter.rb
log_subscriber.rb
migration.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
model_schema.rb Stop using the deprecated direct_descendants in Active Record 2021-10-28 11:44:06 +02:00
nested_attributes.rb Update docs for nested_attributes to reflect default belongs_to behavior 2021-09-30 21:14:47 -05:00
no_touching.rb
null_relation.rb
persistence.rb Document new record_timestamps option on insert_all 2021-10-13 13:34:13 -04:00
query_cache.rb
query_logs.rb Properly clear the ActiveRecord::QueryLogs context 2021-10-27 10:36:33 +02:00
querying.rb
railtie.rb Call Executor#wrap around each test 2021-10-28 15:18:29 +02:00
readonly_attributes.rb
reflection.rb Automatically infer inverse_of with scopes 2021-10-04 09:42:04 -04:00
relation.rb Avoid scoping update transaction when calling update! on a relation 2021-09-09 12:09:03 -04:00
result.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
runtime_registry.rb
sanitization.rb
schema.rb
schema_dumper.rb Merge PR #41487 2021-09-22 18:43:16 -04:00
schema_migration.rb
scoping.rb
secure_token.rb
serialization.rb
signed_id.rb
statement_cache.rb
store.rb
suppressor.rb
table_metadata.rb
test_databases.rb
test_fixtures.rb
timestamp.rb
touch_later.rb
transactions.rb
translation.rb
type.rb
type_caster.rb
validations.rb
version.rb