aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/rating.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-03-05 20:10:24 +0000
committerJon Leighton <j@jonathanleighton.com>2011-03-05 20:10:24 +0000
commitddf83d14f1c7ddae07a285a8ad7c45f652edc843 (patch)
treef46cb89576a6267e6a501acec783ee12c1805a89 /activerecord/test/models/rating.rb
parent4206eff1895dccadcbec471798bfbd129404cc94 (diff)
downloadrails-ddf83d14f1c7ddae07a285a8ad7c45f652edc843.tar.gz
rails-ddf83d14f1c7ddae07a285a8ad7c45f652edc843.tar.bz2
rails-ddf83d14f1c7ddae07a285a8ad7c45f652edc843.zip
Add a test for STI on the through where the through is nested, and change the code which support this
Diffstat (limited to 'activerecord/test/models/rating.rb')
-rw-r--r--activerecord/test/models/rating.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/rating.rb b/activerecord/test/models/rating.rb
index 12c4b5affa..25a52c4ad7 100644
--- a/activerecord/test/models/rating.rb
+++ b/activerecord/test/models/rating.rb
@@ -1,3 +1,4 @@
class Rating < ActiveRecord::Base
belongs_to :comment
+ has_many :taggings, :as => :taggable
end