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 bf2df6e7ba Allow Relation#merge to take a proc.
This was requested by DHH to allow creating of one's own custom
association macros.

For example:

    module Commentable
      def has_many_comments(extra)
        has_many :comments, -> { where(:foo).merge(extra) }
      end
    end

    class Post < ActiveRecord::Base
      extend Commentable
      has_many_comments -> { where(:bar) }
    end
2012-08-03 11:05:31 +01:00
..
adapters Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
associations load active_support/core_ext/object/inclusion in active_support/rails 2012-08-02 21:59:22 +02:00
attribute_methods load active_support/core_ext/object/inclusion in active_support/rails 2012-08-02 21:59:22 +02:00
coders
connection_adapters Simplify AR configuration code. 2012-06-15 19:15:36 +01:00
connection_specification The resolver tests fail if the mysql gem is not installed; this breaks 2012-06-03 17:24:17 -07:00
fixtures
migration ActiveRecord::Base.all returns a Relation. 2012-07-27 13:34:12 +01:00
relation predicate builder should not recurse for determining where columns. 2012-05-30 15:09:13 -07:00
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 Call methods on the correct instance in AR::Schema.define 2012-05-16 15:19:59 -07:00
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 Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03:00
batches_test.rb ActiveRecord::Base.all returns a Relation. 2012-07-27 13:34:12 +01:00
binary_test.rb
bind_parameter_test.rb fix todo: use minitest skip instead of return nil 2012-05-13 02:27:52 -05:00
calculations_test.rb Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
callbacks_test.rb + ActiveRecord::Base#destroy! 2012-06-06 13:27:51 -04:00
clone_test.rb
column_alias_test.rb
column_definition_test.rb Add uuid type support to PostgreSQL adapter 2012-06-14 17:44:51 +04:00
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 Remove warnings and unused code 2012-06-11 22:07:37 -03:00
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 load active_support/core_ext/object/inclusion in active_support/rails 2012-08-02 21:59:22 +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 listener does not care about time, so use evented listener 2012-06-20 14:20:55 -07:00
explain_test.rb ActiveRecord::Base.all returns a Relation. 2012-07-27 13:34:12 +01:00
finder_respond_to_test.rb made dynamic finders alias_attribute aware 2012-06-22 16:44:01 +02:00
finder_test.rb Revert "Removing composed_of from ActiveRecord." 2012-07-27 19:25:14 -03: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 Address test_basic_model test error with Oracle enhanced adapter 2012-06-27 23:51:50 +09:00
inheritance_test.rb Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +01:00
invalid_date_test.rb
invertible_migration_test.rb
json_serialization_test.rb Fix serializable_hash with xml generation and default :except option 2012-06-22 08:28:26 -03:00
lifecycle_test.rb
locking_test.rb
log_subscriber_test.rb ActiveRecord::Base.all returns a Relation. 2012-07-27 13:34:12 +01:00
mass_assignment_security_test.rb Fix deprecation warnings when using config.active_record.mass_assignment_sanitizer= 2012-06-15 19:15:37 +01:00
migration_test.rb Use . instead of :: for class methods, add CHANGELOG entries 2012-06-10 11:38:37 +02:00
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 Deprecate ActiveRecord::Base.scoped. 2012-07-27 17:27:47 +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 ConnectionPool wait_timeout no longer used for different types of timeouts. #6441 2012-05-23 12:08:11 -04:00
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 Deprecate Relation#all. 2012-07-27 17:55:43 +01:00
reaper_test.rb ConnectionPool wait_timeout no longer used for different types of timeouts. #6441 2012-05-23 12:08:11 -04:00
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 AR::Relation#order: make new order prepend old one 2012-07-31 10:24:18 +03:00
relation_test.rb Allow Relation#merge to take a proc. 2012-08-03 11:05:31 +01:00
relations_test.rb Add Relation#load 2012-08-01 21:59:46 +01:00
reload_models_test.rb
sanitize_test.rb
schema_dumper_test.rb Merge pull request #4396 from kennyj/fix_4259 2012-06-20 14:08:23 -03:00
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 Merge pull request #5535 from markmcspadden/issue_5527_rollbacks 2012-05-16 16:06:49 -07:00
transactions_test.rb Restore the frozen state on rollback. Fixes #6417. 2012-05-21 14:57:04 -07:00
unconnected_test.rb
validations_repair_helper.rb
validations_test.rb
xml_serialization_test.rb ActiveRecord::Base.all returns a Relation. 2012-07-27 13:34:12 +01:00
yaml_serialization_test.rb