diff options
author | Bogdan Gusiev <agresso@gmail.com> | 2014-05-05 10:48:59 +0300 |
---|---|---|
committer | Bogdan Gusiev <agresso@gmail.com> | 2014-05-05 16:45:16 +0300 |
commit | 7e20bdc20dd91e1195086a5f54178a01b74ebb31 (patch) | |
tree | 2cbd6950a407332e15006e009b3fd5de36b93ce9 /activerecord/test/models | |
parent | f2003834c85db173ea436273b63315543b82f896 (diff) | |
download | rails-7e20bdc20dd91e1195086a5f54178a01b74ebb31.tar.gz rails-7e20bdc20dd91e1195086a5f54178a01b74ebb31.tar.bz2 rails-7e20bdc20dd91e1195086a5f54178a01b74ebb31.zip |
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
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/comment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |