From 7e20bdc20dd91e1195086a5f54178a01b74ebb31 Mon Sep 17 00:00:00 2001 From: Bogdan Gusiev Date: Mon, 5 May 2014 10:48:59 +0300 Subject: Put back Relation#join method as a delegate to Array This is a regression 4.0 -> 4.1 fix. In 4.1.0 Relation#join is delegated to Arel#SelectManager. In 4.0 series it is delegated to Array#join This patch puts back the behaviour of 4.0 --- activerecord/test/models/comment.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/test/models') diff --git a/activerecord/test/models/comment.rb b/activerecord/test/models/comment.rb index ede5fbd0c6..f82df417ce 100644 --- a/activerecord/test/models/comment.rb +++ b/activerecord/test/models/comment.rb @@ -26,6 +26,10 @@ class Comment < ActiveRecord::Base all end scope :all_as_scope, -> { all } + + def to_s + body + end end class SpecialComment < Comment -- cgit v1.2.3