diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2015-11-02 13:04:45 +0000 |
---|---|---|
committer | Andrew White <pixeltrix@users.noreply.github.com> | 2015-11-02 13:04:45 +0000 |
commit | c88cda58a9b12a99aa6593034e88f6e5b4e1efbc (patch) | |
tree | db30db13d99ca844f1b818aa4328a96d3325b4c5 /activerecord/test/cases/relation | |
parent | 57493eae3d45a4253aeb0b4f60239531da9d0446 (diff) | |
parent | 6011ab853c0b843e0aa139ca90a5e4ab9ec143c2 (diff) | |
download | rails-c88cda58a9b12a99aa6593034e88f6e5b4e1efbc.tar.gz rails-c88cda58a9b12a99aa6593034e88f6e5b4e1efbc.tar.bz2 rails-c88cda58a9b12a99aa6593034e88f6e5b4e1efbc.zip |
Merge pull request #22133 from yui-knk/sanitize_sql_for_order
Define `sanitize_sql_for_order` for AR and use it inside `preprocess_…
Diffstat (limited to 'activerecord/test/cases/relation')
-rw-r--r-- | activerecord/test/cases/relation/mutation_test.rb | 4 |
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 cc0034ffd1..d0f60a84b5 100644 --- a/activerecord/test/cases/relation/mutation_test.rb +++ b/activerecord/test/cases/relation/mutation_test.rb @@ -22,6 +22,10 @@ module ActiveRecord def sanitize_sql(sql) sql end + + def sanitize_sql_for_order(sql) + sql + end end def relation |