aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/person.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2010-01-18 04:38:19 +0530
committerPratik Naik <pratiknaik@gmail.com>2010-01-18 04:38:19 +0530
commitd60bb0a9e4be2ac0a9de9a69041a4ddc2e0cc914 (patch)
tree0189bf9fe9888963df51987e5e330b09e2e19b59 /activerecord/test/models/person.rb
parente1d507c7fb541d29d57d152f40e3a539e70781d0 (diff)
downloadrails-d60bb0a9e4be2ac0a9de9a69041a4ddc2e0cc914.tar.gz
rails-d60bb0a9e4be2ac0a9de9a69041a4ddc2e0cc914.tar.bz2
rails-d60bb0a9e4be2ac0a9de9a69041a4ddc2e0cc914.zip
Rename named_scope to scope
Diffstat (limited to 'activerecord/test/models/person.rb')
-rw-r--r--activerecord/test/models/person.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb
index 57fa6418f1..2a73b1ee01 100644
--- a/activerecord/test/models/person.rb
+++ b/activerecord/test/models/person.rb
@@ -12,6 +12,6 @@ class Person < ActiveRecord::Base
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' }
+ scope :males, :conditions => { :gender => 'M' }
+ scope :females, :conditions => { :gender => 'F' }
end