From 599c50583784537eec454f5e91dac89f88e54da3 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Thu, 12 Aug 2010 16:41:34 +0200 Subject: [PATCH] commit review: applies guidelines to "# =>" --- activerecord/lib/active_record/base.rb | 4 ++-- activerecord/lib/active_record/named_scope.rb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index a464b65c19e1d..4b550eb446b5c 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1155,8 +1155,8 @@ def with_exclusive_scope(method_scoping = {}, &block) # default_scope where(:published => true) # end # - # Article.new.published #=> true - # Article.create.published #=> true + # Article.new.published # => true + # Article.create.published # => true def default_scope(options = {}) self.default_scoping << construct_finder_arel(options, default_scoping.pop) end diff --git a/activerecord/lib/active_record/named_scope.rb b/activerecord/lib/active_record/named_scope.rb index c95060126ece0..bffc450f8eb08 100644 --- a/activerecord/lib/active_record/named_scope.rb +++ b/activerecord/lib/active_record/named_scope.rb @@ -95,8 +95,8 @@ def scopes # 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)