aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
diff options
context:
space:
mode:
authorRizwan Reza <rizwanreza@gmail.com>2010-06-21 00:45:34 +0430
committerRizwan Reza <rizwanreza@gmail.com>2010-06-21 00:45:34 +0430
commit3ef1d63a78494d0b7e7e82f7240b1977e3b386dd (patch)
treedec5aad72db9576b83ed065eef941fac84ebeed2 /activerecord/lib/active_record/named_scope.rb
parent46dd8af1797a208b28b11cfee6e7ebf6eb48a36e (diff)
downloadrails-3ef1d63a78494d0b7e7e82f7240b1977e3b386dd.tar.gz
rails-3ef1d63a78494d0b7e7e82f7240b1977e3b386dd.tar.bz2
rails-3ef1d63a78494d0b7e7e82f7240b1977e3b386dd.zip
All scopes are now cross-referenced.
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r--activerecord/lib/active_record/named_scope.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index 47eef9535e..ec0a98c6df 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -4,7 +4,7 @@ require 'active_support/core_ext/kernel/singleton_class'
require 'active_support/core_ext/object/blank'
module ActiveRecord
- # = Active Record Named Scopes
+ # = Active Record Named \Scopes
module NamedScope
extend ActiveSupport::Concern
@@ -20,10 +20,10 @@ module ActiveRecord
# fruits = fruits.limit(10) if limited?
#
# Anonymous \scopes tend to be useful when procedurally generating complex
- # queries, where passing intermediate values (scopes) around as first-class
+ # queries, where passing intermediate values (\scopes) around as first-class
# objects is convenient.
#
- # You can define a scope that applies to all finders using
+ # You can define a \scope that applies to all finders using
# ActiveRecord::Base.default_scope.
def scoped(options = {}, &block)
if options.present?
@@ -38,7 +38,7 @@ module ActiveRecord
read_inheritable_attribute(:scopes) || write_inheritable_attribute(:scopes, {})
end
- # Adds a class method for retrieving and querying objects. A scope represents a narrowing of a database query,
+ # Adds a class method for retrieving and querying objects. A \scope represents a narrowing of a database query,
# such as <tt>where(:color => :red).select('shirts.*').includes(:washing_instructions)</tt>.
#
# class Shirt < ActiveRecord::Base