aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-04-09 11:15:12 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-04-09 11:15:12 -0700
commit1368311eecaac0594f683de3d86507c098a34e5a (patch)
treed7b151680d6533259e8bc6dfc2e25a2f732fcd66 /activerecord/test
parent7b75b678cf11a1aed7927a9db42fb60a38726450 (diff)
parenta91e5ff2cbf2f8971ad0d2a80b2e22e63b1900f6 (diff)
downloadrails-1368311eecaac0594f683de3d86507c098a34e5a.tar.gz
rails-1368311eecaac0594f683de3d86507c098a34e5a.tar.bz2
rails-1368311eecaac0594f683de3d86507c098a34e5a.zip
Merge pull request #14668 from laurocaetano/source_option_with_string_value
The :source option for has_many => through should accept String values.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/models/tag.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/tag.rb b/activerecord/test/models/tag.rb
index a581b381e8..80d4725f7e 100644
--- a/activerecord/test/models/tag.rb
+++ b/activerecord/test/models/tag.rb
@@ -3,5 +3,5 @@ class Tag < ActiveRecord::Base
has_many :taggables, :through => :taggings
has_one :tagging
- has_many :tagged_posts, :through => :taggings, :source => :taggable, :source_type => 'Post'
-end \ No newline at end of file
+ has_many :tagged_posts, :through => :taggings, :source => 'taggable', :source_type => 'Post'
+end