aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/named_scope.rb
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2010-08-12 16:41:34 +0200
committerXavier Noria <fxn@hashref.com>2010-08-12 16:41:34 +0200
commit599c50583784537eec454f5e91dac89f88e54da3 (patch)
treef417abfdd5c1f0e12d3aa7accdc896eaaf2b7cd4 /activerecord/lib/active_record/named_scope.rb
parentcfad74cfef51888321c042623c9e2fb9663640f3 (diff)
downloadrails-599c50583784537eec454f5e91dac89f88e54da3.tar.gz
rails-599c50583784537eec454f5e91dac89f88e54da3.tar.bz2
rails-599c50583784537eec454f5e91dac89f88e54da3.zip
commit review: applies guidelines to "# =>"
Diffstat (limited to 'activerecord/lib/active_record/named_scope.rb')
-rw-r--r--activerecord/lib/active_record/named_scope.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb
index c95060126e..bffc450f8e 100644
--- a/activerecord/lib/active_record/named_scope.rb
+++ b/activerecord/lib/active_record/named_scope.rb
@@ -95,8 +95,8 @@ module ActiveRecord
# scope :published, where(:published => true)
# end
#
- # Article.published.new.published #=> true
- # Article.published.create.published #=> true
+ # Article.published.new.published # => true
+ # Article.published.create.published # => true
def scope(name, scope_options = {}, &block)
name = name.to_sym
valid_scope_name?(name)