aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/parrot.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2007-11-20 21:53:22 +0000
committerMichael Koziarski <michael@koziarski.com>2007-11-20 21:53:22 +0000
commitc95f066bf5b5121ff86db090eff3436e63db9230 (patch)
tree582d35eeaff9f9a6d3bb3f8f3bc584defe40933d /activerecord/test/fixtures/parrot.rb
parent0c12d6c6dc66cb7873969fc7f982ad9244a4ea00 (diff)
downloadrails-c95f066bf5b5121ff86db090eff3436e63db9230.tar.gz
rails-c95f066bf5b5121ff86db090eff3436e63db9230.tar.bz2
rails-c95f066bf5b5121ff86db090eff3436e63db9230.zip
Add 'foxy' support for fixtures of polymorphic associations. Closes #10183 [jbarnette, David Lowenfels]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/parrot.rb')
-rw-r--r--activerecord/test/fixtures/parrot.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/parrot.rb b/activerecord/test/fixtures/parrot.rb
index 340c73b907..10850669e7 100644
--- a/activerecord/test/fixtures/parrot.rb
+++ b/activerecord/test/fixtures/parrot.rb
@@ -1,4 +1,5 @@
class Parrot < ActiveRecord::Base
has_and_belongs_to_many :pirates
has_and_belongs_to_many :treasures
+ has_many :loots, :as => :looter
end