aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/post.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-10-27 09:32:40 +0900
committerGitHub <noreply@github.com>2017-10-27 09:32:40 +0900
commit432b193d3a21540e29b9a2f381ac6d38ae2bfeb2 (patch)
treebe668eb8941890133f94a221c330316ee4c3d565 /activerecord/test/models/post.rb
parent27265ee57c9420e233c877c7280cb8df53e31e0a (diff)
parenta8966cc4701dcdd982e291d63b27be736c777fc8 (diff)
downloadrails-432b193d3a21540e29b9a2f381ac6d38ae2bfeb2.tar.gz
rails-432b193d3a21540e29b9a2f381ac6d38ae2bfeb2.tar.bz2
rails-432b193d3a21540e29b9a2f381ac6d38ae2bfeb2.zip
Merge pull request #30682 from ahorek/fix_scope_for
delegate scope_for on PolymorphicReflection
Diffstat (limited to 'activerecord/test/models/post.rb')
-rw-r--r--activerecord/test/models/post.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/post.rb b/activerecord/test/models/post.rb
index 935a11e811..7f064bf3dd 100644
--- a/activerecord/test/models/post.rb
+++ b/activerecord/test/models/post.rb
@@ -115,6 +115,7 @@ class Post < ActiveRecord::Base
has_many :misc_tags, -> { where tags: { name: "Misc" } }, through: :taggings, source: :tag
has_many :funky_tags, through: :taggings, source: :tag
has_many :super_tags, through: :taggings
+ has_many :ordered_tags, through: :taggings
has_many :tags_with_primary_key, through: :taggings, source: :tag_with_primary_key
has_one :tagging, as: :taggable