1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases
Sean Griffin 0f29c21607 Reduce the amount of work performed when instantiating AR models
We don't know which attributes will or won't be used, and we don't want
to create massive bottlenecks at instantiation. Rather than doing *any*
iteration over types and values, we can lazily instantiate the object.

The lazy attribute hash should not fully implement hash, or subclass
hash at any point in the future. It is not meant to be a replacement,
but instead implement its own interface which happens to overlap.
2014-11-14 14:30:40 -07:00
..
adapters Build fix when running in isolation 2014-11-14 10:24:11 +01:00
associations Build fix when running in isolation 2014-11-14 10:24:11 +01:00
attribute_methods Allow included modules to override association methods. 2014-09-09 10:00:30 +02:00
coders
connection_adapters Merge pull request #17305 from ziggythehamster/activerecord-connectionhandling-RAILS_ENV-without-rails 2014-10-31 17:51:52 -02:00
connection_specification
fixture_set
migration add a Table#name accessor like TableDefinition#name 2014-11-10 14:56:21 -07:00
relation Build fix when running in isolation 2014-11-14 10:24:11 +01:00
scoping Build fix when running in isolation 2014-11-14 10:24:11 +01:00
tasks schema loading rake tasks maintain database connection for current env. 2014-09-03 18:02:44 +02:00
type Revert the behavior of booleans in string columns to that of 4.1 2014-11-09 20:42:36 -07:00
validations Fixes a bug found when running individual tests against #17217 after merging 2014-11-10 08:33:44 -06:00
adapter_test.rb Add where condition so select_one returns the correct record. 2014-07-28 20:05:32 +08:00
aggregations_test.rb
ar_schema_test.rb Merge pull request #16827 from kuldeepaggarwal/f-disable-migration-logging 2014-09-08 11:50:15 +02:00
associations_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
attribute_decorators_test.rb Replace drop sql statement to drop_table method 2014-09-11 03:47:44 +09:00
attribute_methods_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
attribute_set_test.rb Reduce the amount of work performed when instantiating AR models 2014-11-14 14:30:40 -07:00
attribute_test.rb Implement == on Type::Value and Attribute 2014-08-15 13:37:53 -06:00
attributes_test.rb Don't modify the columns hash to set defaults from the attributes API 2014-10-31 16:06:14 -06:00
autosave_association_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
base_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
batches_test.rb
binary_test.rb /mysql/i -> MySQL, Spell correct in continuation to #15555 2014-06-14 17:11:08 +05:30
bind_parameter_test.rb
calculations_test.rb Don't require calculations to be aliased to a column 2014-10-31 08:40:16 -06:00
callbacks_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
clone_test.rb
column_alias_test.rb
column_definition_test.rb
connection_management_test.rb ar/connection_pool: honor overriden rack.test in middleware 2014-09-23 02:33:18 +00:00
connection_pool_test.rb
core_test.rb
counter_cache_test.rb Add :all argument to count in reset_counters 2014-07-02 20:21:36 -05:00
custom_locking_test.rb
database_statements_test.rb
date_time_test.rb
defaults_test.rb Don't type cast the default on the column 2014-06-17 16:02:53 -06:00
dirty_test.rb User Model#last to certainly get lastly created data 2014-08-28 19:27:22 +09:00
disconnected_test.rb
dup_test.rb Don't error when duping a record with no PK 2014-07-02 07:00:26 -06:00
enum_test.rb Enums shouldn't ruin people's anniversaries 2014-09-04 00:34:21 -07:00
explain_subscriber_test.rb
explain_test.rb
finder_respond_to_test.rb
finder_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
fixtures_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
forbidden_attributes_protection_test.rb Check attributes passed to create_with and where 2014-08-18 14:07:37 -03:00
habtm_destroy_order_test.rb
helper.rb Remove redundant to_s in interpolation 2014-10-30 08:48:32 -07:00
hot_compatibility_test.rb
i18n_test.rb
inheritance_test.rb
integration_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
invalid_connection_test.rb
invalid_date_test.rb
invertible_migration_test.rb Silence another test that runs migrations 2014-08-29 10:34:26 +09:00
json_serialization_test.rb
locking_test.rb Dynamically modified schema and association would not be correctly reset 2014-09-06 23:28:18 +09:00
log_subscriber_test.rb
migration_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
migrator_test.rb Merge pull request #17302 from claudiob/replace-slower-block-call-with-faster-yield 2014-10-18 17:08:24 -03:00
mixin_test.rb
modules_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
multiparameter_attributes_test.rb
multiple_db_test.rb
nested_attributes_test.rb
nested_attributes_with_callbacks_test.rb
persistence_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
pooled_connections_test.rb
primary_keys_test.rb Define id_was to get the previous value of the primary key 2014-08-06 23:46:31 -03:00
query_cache_test.rb
quoting_test.rb Always pass a column with a type object to quote 2014-06-28 14:50:30 -06:00
readonly_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
reaper_test.rb
reflection_test.rb Begin refactoring ThroughReflection 2014-07-08 08:49:19 -04:00
relation_test.rb Consolidate testing of update_all type casting 2014-06-26 07:57:03 -06:00
relations_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
reload_models_test.rb
result_test.rb add length to ActiveRecord::Result 2014-10-13 12:01:41 -07:00
sanitize_test.rb Add an assert_deprecated for sanitize_sql_hash_for_conditions 2014-11-02 14:01:57 -07:00
schema_dumper_test.rb Added SchemaDumper support for tables with jsonb columns. 2014-11-04 12:55:07 -05:00
serialization_test.rb Use bind values for joined tables in where statements 2014-11-01 15:39:51 -06:00
serialized_attribute_test.rb Fixed test throwing unused variable warning 2014-10-19 22:20:59 +05:30
statement_cache_test.rb
store_test.rb Introduce an Attribute object to handle the type casting dance 2014-06-13 10:20:54 -06:00
test_case.rb Ignore Postgresql "SELECT tablename FROM pg_tables" when counting queries 2014-08-20 17:50:11 +09:00
timestamp_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
transaction_callbacks_test.rb Add option to stop swallowing errors on callbacks. 2014-08-18 14:47:48 -04:00
transaction_isolation_test.rb
transactions_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
types_test.rb Use the correct values for int max and min 2014-10-31 13:25:16 -06:00
unconnected_test.rb
validations_repair_helper.rb Clear validators before and after each test 2014-08-14 16:14:02 +09:00
validations_test.rb Build fix when running in isolation 2014-11-14 10:24:11 +01:00
view_test.rb reuse view test-cases for pg materialized view tests. 2014-09-11 16:47:52 +02:00
xml_serialization_test.rb
yaml_serialization_test.rb Implement required #encode_with 2014-07-15 15:50:29 -05:00