aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-02-04 09:43:21 +1030
committerMatthew Draper <matthew@trebex.net>2016-02-04 09:43:21 +1030
commiteeaf6ee2843775a00579e5996d4081092c567519 (patch)
tree89b632e8b2ab42be322a73d5f08c0e66ed9bb2ca /activerecord/test/cases
parent13b918d1e9ebe2c609b5479550a35f3665c2acd2 (diff)
parent5952861948a0918b1955202c1ea19589634537dc (diff)
downloadrails-eeaf6ee2843775a00579e5996d4081092c567519.tar.gz
rails-eeaf6ee2843775a00579e5996d4081092c567519.tar.bz2
rails-eeaf6ee2843775a00579e5996d4081092c567519.zip
Merge pull request #23457 from matthewd/arel-attribute
Defer Arel attribute lookup to the model class
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/relation/mutation_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/relation/mutation_test.rb b/activerecord/test/cases/relation/mutation_test.rb
index d0f60a84b5..ffb2da7a26 100644
--- a/activerecord/test/cases/relation/mutation_test.rb
+++ b/activerecord/test/cases/relation/mutation_test.rb
@@ -26,6 +26,10 @@ module ActiveRecord
def sanitize_sql_for_order(sql)
sql
end
+
+ def arel_attribute(name, table)
+ table[name]
+ end
end
def relation