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
Xavier Noria 447b6a4e67 removes usage of Object#in? from the code base (the method remains defined by Active Support)
Selecting which key extensions to include in active_support/rails
made apparent the systematic usage of Object#in? in the code base.
After some discussion in

    5ea6b0df9a

we decided to remove it and use plain Ruby, which seems enough
for this particular idiom.

In this commit the refactor has been made case by case. Sometimes
include? is the natural alternative, others a simple || is the
way you actually spell the condition in your head, others a case
statement seems more appropriate. I have chosen the one I liked
the most in each case.
2012-08-06 00:30:02 +02:00
..
adapters Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
associations removes usage of Object#in? from the code base (the method remains defined by Active Support) 2012-08-06 00:30:02 +02:00
attribute_methods removes usage of Object#in? from the code base (the method remains defined by Active Support) 2012-08-06 00:30:02 +02:00
coders
connection_adapters
connection_specification
fixtures
migration Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
relation
session_store Fix SqlBypass.data_column= problem. SqlBypass.find_by_session_id method didn't use this assignment. 2012-07-15 01:46:02 +09:00
tasks Merge pull request #7196 from rimidl/fix-incorrect-require-mysql-in-mysql_rake_test 2012-07-29 11:15:13 -07:00
validations Merge pull request #6827 from zephyr-dev/master 2012-07-27 11:02:29 -07:00
adapter_test.rb
aggregations_test.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
ar_schema_test.rb
associations_test.rb Add CollectionProxy#scope 2012-08-01 23:19:52 +01:00
attribute_methods_test.rb load active_support/core_ext/object/inclusion in active_support/rails 2012-08-02 21:59:22 +02:00
autosave_association_test.rb Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
base_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
batches_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
binary_test.rb
bind_parameter_test.rb
calculations_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
callbacks_test.rb
clone_test.rb
column_alias_test.rb
column_definition_test.rb
column_test.rb fix quoting for ActiveSupport::Duration instances 2012-07-04 22:39:16 -05:00
connection_management_test.rb
connection_pool_test.rb
counter_cache_test.rb
custom_locking_test.rb Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
database_statements_test.rb
date_time_test.rb
defaults_test.rb removes usage of Object#in? from the code base (the method remains defined by Active Support) 2012-08-06 00:30:02 +02:00
deprecated_dynamic_methods_test.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
dirty_test.rb Do not consider the numeric attribute as changed if the old value is 2012-08-02 14:13:45 -03:00
dup_test.rb
explain_subscriber_test.rb
explain_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
finder_respond_to_test.rb made dynamic finders alias_attribute aware 2012-06-22 16:44:01 +02:00
finder_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
fixtures_test.rb
habtm_destroy_order_test.rb
helper.rb load active_support/deprecation in active_support/rails 2012-08-02 21:59:23 +02:00
i18n_test.rb
inclusion_test.rb Make ActiveRecord::Model::DeprecationProxy work better 2012-08-03 19:36:37 +01:00
inheritance_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
invalid_date_test.rb
invertible_migration_test.rb
json_serialization_test.rb
lifecycle_test.rb
locking_test.rb
log_subscriber_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
mass_assignment_security_test.rb
migration_test.rb
migrator_test.rb
mixin_test.rb
modules_test.rb Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
multiple_db_test.rb
named_scope_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
nested_attributes_test.rb Made ArgumentError messages consistent. 2012-07-06 14:31:33 +12:00
persistence_test.rb Remove the deprecation of update_column. 2012-07-30 10:50:18 -03:00
pooled_connections_test.rb
primary_keys_test.rb
query_cache_test.rb Restore connection_id on error. 2012-07-23 00:46:00 +09:00
quoting_test.rb fix quoting for ActiveSupport::Duration instances 2012-07-04 22:39:16 -05:00
readonly_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
reaper_test.rb
reflection_test.rb Revert "Remove :finder_sql, :counter_sql, :insert_sql, :delete_sql." 2012-08-01 19:46:31 +01:00
relation_scoping_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
relation_test.rb Allow Relation#merge to take a proc. 2012-08-03 11:05:31 +01:00
relations_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
reload_models_test.rb
sanitize_test.rb
schema_dumper_test.rb
serialization_test.rb Added *instance_writer: false* for stored/serialized attributes. 2012-07-07 16:36:21 +09:00
store_test.rb Added *instance_writer: false* for stored/serialized attributes. 2012-07-07 16:36:21 +09:00
test_case.rb load active_support/deprecation in active_support/rails 2012-08-02 21:59:23 +02:00
timestamp_test.rb Deprecate update_column in favor of update_columns. 2012-07-24 20:20:26 -03:00
transaction_callbacks_test.rb
transactions_test.rb
unconnected_test.rb
validations_repair_helper.rb
validations_test.rb
xml_serialization_test.rb Remove ActiveRecord::Base.to_a 2012-08-03 11:51:52 +01:00
yaml_serialization_test.rb