diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-05 13:22:24 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-05-05 13:22:24 -0300 |
commit | 69a379242e653f1f1e6968c3f0905d841145ae61 (patch) | |
tree | dbf5652edefbfa60bb8cfc64f40ddf2aec3dc69e /activerecord/test/models | |
parent | a8d85c4d518e8ed73ac8a5685bfb2a2a842900fd (diff) | |
parent | 7e20bdc20dd91e1195086a5f54178a01b74ebb31 (diff) | |
download | rails-69a379242e653f1f1e6968c3f0905d841145ae61.tar.gz rails-69a379242e653f1f1e6968c3f0905d841145ae61.tar.bz2 rails-69a379242e653f1f1e6968c3f0905d841145ae61.zip |
Merge pull request #14978 from bogdan/relation-join
[Regression 4.0 -> 4.1] Put back Relation#join method as a delegate to Array
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 |