aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relation_test.rb
diff options
context:
space:
mode:
authorIvan Antropov <antropov.ivan@gmail.com>2013-11-10 12:28:54 +0700
committerIvan Antropov <antropov.ivan@gmail.com>2013-11-17 12:20:50 +0700
commitec0928076529e8f0b5a4ad58c95cfa1fe6ed5b60 (patch)
tree30ebc3fd0590552a2b175b83c5d99c6b0f347c39 /activerecord/test/cases/relation_test.rb
parentfa13d8e6d926c601070104c7075be39618280272 (diff)
downloadrails-ec0928076529e8f0b5a4ad58c95cfa1fe6ed5b60.tar.gz
rails-ec0928076529e8f0b5a4ad58c95cfa1fe6ed5b60.tar.bz2
rails-ec0928076529e8f0b5a4ad58c95cfa1fe6ed5b60.zip
Fix insertion of records for hmt association with scope, fix #3548
Diffstat (limited to 'activerecord/test/cases/relation_test.rb')
-rw-r--r--activerecord/test/cases/relation_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb
index 70d113fb39..e83aafc842 100644
--- a/activerecord/test/cases/relation_test.rb
+++ b/activerecord/test/cases/relation_test.rb
@@ -16,6 +16,10 @@ module ActiveRecord
def self.connection
Post.connection
end
+
+ def self.table_name
+ 'fake_table'
+ end
end
def test_construction