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
Jon Leighton 93c1f11c0a Support configuration on ActiveRecord::Model.
The problem: We need to be able to specify configuration in a way that
can be inherited to models that include ActiveRecord::Model. So it is
no longer sufficient to put 'top level' config on ActiveRecord::Base,
but we do want configuration specified on ActiveRecord::Base and
descendants to continue to work.

So we need something like class_attribute that can be defined on a
module but that is inherited when ActiveRecord::Model is included.

The solution: added ActiveModel::Configuration module which provides a
config_attribute macro. It's a bit specific hence I am not putting this
in Active Support or making it a 'public API' at present.
2011-12-28 18:27:41 +00:00
..
adapters remove checks for encodings availability 2011-12-25 14:34:58 +03:00
associations remove requires of core_ext/array/random_access that no longer exists 2011-12-21 19:19:19 +03:00
attribute_methods Support configuration on ActiveRecord::Model. 2011-12-28 18:27:41 +00:00
coders
connection_adapters Extract common logic into a method 2011-12-24 11:08:15 +00:00
connection_specification I herd you like modules. 2011-12-24 11:08:15 +00:00
fixtures
identity_map
migration Fixed bad options order in ActiveRecord::Migration::CommandRecorder#invert_rename_index 2011-08-28 06:02:15 +02:00
session_store Unfluff the CI. 2011-12-14 11:05:00 +00:00
validations 'with_kcode' removed. 2011-12-21 15:39:50 +05:30
adapter_test.rb Revert naive O(1) table_exists? implementation. 2011-12-13 23:46:26 +00:00
aggregations_test.rb
ar_schema_test.rb
associations_test.rb don't change class definition in test case 2011-11-29 09:14:21 -08:00
attribute_methods_test.rb Fix #4046. 2011-12-23 18:20:35 +00:00
autosave_association_test.rb Test case and fix for rails/rails#3450 2011-11-27 22:29:56 +01:00
base_test.rb Ensure attribute methods are included after all the AR stuff 2011-12-24 11:08:16 +00:00
batches_test.rb Sort here to make sure the order is ok. 2011-09-05 12:49:34 +05:30
binary_test.rb remove checks for encodings availability 2011-12-25 14:34:58 +03:00
bind_parameter_test.rb
calculations_test.rb Make ActiveRecord::Relation#pluck work with serialized attributes 2011-12-22 19:23:27 +00:00
callbacks_test.rb Deprecate set_table_name in favour of self.table_name= or defining your own method. 2011-11-29 20:13:36 +00:00
clone_test.rb
column_alias_test.rb
column_definition_test.rb Create an AbstractMysqlAdapter to abstract the common code between MysqlAdapter and Mysql2Adapter. 2011-08-29 12:43:39 +01:00
connection_management_test.rb Move connection resoluion logic to it's own testable class. 2011-11-28 15:23:25 -08:00
connection_pool_test.rb Automatic closure of connections in threads is deprecated. For example 2011-11-29 15:04:41 -08:00
counter_cache_test.rb
custom_locking_test.rb
database_statements_test.rb
date_time_test.rb
defaults_test.rb
deprecated_finder_test.rb
dirty_test.rb
dup_test.rb
dynamic_finder_match_test.rb
explain_test.rb implements a much faster auto EXPLAIN, closes #3843 [José Valim & Xavier Noria] 2011-12-04 11:52:12 -08:00
finder_respond_to_test.rb
finder_test.rb Deprecate set_primary_key in favour of self.primary_key= 2011-11-29 20:13:37 +00:00
fixtures_test.rb Fix a fixtures test case with table prefix/suffix 2011-12-27 02:17:31 +01:00
habtm_destroy_order_test.rb
helper.rb remove more uses of deprecated logger methods 2011-12-19 21:05:28 -08:00
i18n_test.rb
identity_map_test.rb
inclusion_test.rb Intercept sends in Model::DeprecationProxy 2011-12-24 14:48:44 +00:00
inheritance_test.rb Deprecate set_inheritance_column in favour of self.inheritance_column= 2011-11-29 20:13:36 +00:00
invalid_date_test.rb
invertible_migration_test.rb
json_serialization_test.rb
lifecycle_test.rb Allow ActiveRecord observers to be disabled. 2011-08-12 20:48:44 -07:00
locking_test.rb remove deprecated set and original methods for table_name, primary_key, etc 2011-12-21 22:00:55 +03:00
log_subscriber_test.rb remove more uses of deprecated logger methods 2011-12-19 21:05:28 -08:00
mass_assignment_security_test.rb added failing tests for has_many, has_one and belongs_to associations with strict mass assignment sanitizer, fixed build_record to not merge creation_attributes, removed failing nested attributes tests (that feature was broken anyway) #4051 2011-12-21 21:10:15 +01:00
method_scoping_test.rb Make it the responsibility of the connection to hold onto an ARel visitor for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now. 2011-08-08 23:28:23 +01:00
migration_test.rb Allow to filter migrations by passing a block 2011-12-09 21:43:36 +01:00
mixin_test.rb
modules_test.rb
multiple_db_test.rb pools are 1:1 with spec now rather than 1:1 with class 2011-11-28 15:23:25 -08:00
named_scope_test.rb remove requires of core_ext/array/random_access that no longer exists 2011-12-21 19:19:19 +03:00
nested_attributes_test.rb added failing tests for has_many, has_one and belongs_to associations with strict mass assignment sanitizer, fixed build_record to not merge creation_attributes, removed failing nested attributes tests (that feature was broken anyway) #4051 2011-12-21 21:10:15 +01:00
persistence_test.rb Raise error when using write_attribute with a non-existent attribute. 2011-09-13 00:01:58 +01:00
pooled_connections_test.rb Removed test which works only < 1.9 2011-12-21 15:35:57 +05:30
primary_keys_test.rb Cache columns at the model level. 2011-12-16 13:52:07 +00:00
query_cache_test.rb Added failing test case for changing schema in migration not clearing the prepared statement cache 2011-10-27 10:50:38 -07:00
quoting_test.rb
readonly_test.rb
reflection_test.rb serialize fails on subclass 2011-12-23 18:19:25 +00:00
relation_scoping_test.rb Add return for 1.8.7 2011-12-14 11:11:12 +00:00
relation_test.rb Add ActiveRecord::Relation#uniq for toggling DISTINCT in the SQL query 2011-11-05 16:22:18 +00:00
relations_test.rb Add ActiveRecord::Relation#uniq for toggling DISTINCT in the SQL query 2011-11-05 16:22:18 +00:00
reload_models_test.rb
sanitize_test.rb
schema_dumper_test.rb deprecate String#encoding_aware? and remove its usage 2011-12-24 15:57:54 +03:00
serialization_test.rb Raise error when using write_attribute with a non-existent attribute. 2011-09-13 00:01:58 +01:00
store_test.rb Fix typo 2011-11-30 23:18:40 +00:00
timestamp_test.rb Allow instances to disable record_timestamps 2011-10-26 18:20:12 +01:00
transaction_callbacks_test.rb Deprecate set_table_name in favour of self.table_name= or defining your own method. 2011-11-29 20:13:36 +00:00
transactions_test.rb Automatic closure of connections in threads is deprecated. For example 2011-11-29 15:04:41 -08:00
unconnected_test.rb Transactional fixtures enlist all active database connections. 2011-10-05 19:10:18 -07:00
validations_repair_helper.rb
validations_test.rb Deprecate set_table_name in favour of self.table_name= or defining your own method. 2011-11-29 20:13:36 +00:00
xml_serialization_test.rb
yaml_serialization_test.rb stop test resetting global state 2011-12-23 23:22:24 +00:00