diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-12 16:41:34 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-12 16:41:34 +0200 |
commit | 599c50583784537eec454f5e91dac89f88e54da3 (patch) | |
tree | f417abfdd5c1f0e12d3aa7accdc896eaaf2b7cd4 /activerecord | |
parent | cfad74cfef51888321c042623c9e2fb9663640f3 (diff) | |
download | rails-599c50583784537eec454f5e91dac89f88e54da3.tar.gz rails-599c50583784537eec454f5e91dac89f88e54da3.tar.bz2 rails-599c50583784537eec454f5e91dac89f88e54da3.zip |
commit review: applies guidelines to "# =>"
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 4 | ||||
-rw-r--r-- | 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 a464b65c19..4b550eb446 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1155,8 +1155,8 @@ MSG # 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 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) |