aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
diff options
context:
space:
mode:
authorBenjamin Floering <floering@ieee.org>2009-05-17 23:35:47 -0700
committerPratik Naik <pratiknaik@gmail.com>2009-05-18 13:56:17 +0200
commit27de7f150b57a18d4ccdd274f6f8b621b58108c6 (patch)
tree266fe0c48b0920757c3e65fa44413c5426a85b7b /activerecord/test/models
parent49afe81a13a98d1878f2400bef11a7b89468dff0 (diff)
downloadrails-27de7f150b57a18d4ccdd274f6f8b621b58108c6.tar.gz
rails-27de7f150b57a18d4ccdd274f6f8b621b58108c6.tar.bz2
rails-27de7f150b57a18d4ccdd274f6f8b621b58108c6.zip
Fixed limited eager loading associations with numbers in the name [#2668 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r--activerecord/test/models/person.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb
index ec2f684a6e..57fa6418f1 100644
--- a/activerecord/test/models/person.rb
+++ b/activerecord/test/models/person.rb
@@ -10,6 +10,7 @@ class Person < ActiveRecord::Base
belongs_to :primary_contact, :class_name => 'Person'
has_many :agents, :class_name => 'Person', :foreign_key => 'primary_contact_id'
+ belongs_to :number1_fan, :class_name => 'Person'
named_scope :males, :conditions => { :gender => 'M' }
named_scope :females, :conditions => { :gender => 'F' }