Permalink
Browse files

commit review: applies guidelines to "# =>"

  • Loading branch information...
1 parent 198bffe commit 1e6e868d8c09c799440f14a5943c7a711131eec8 @fxn fxn committed Aug 12, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 activerecord/lib/active_record/base.rb
  2. +2 −2 activerecord/lib/active_record/named_scope.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
@@ -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)

0 comments on commit 1e6e868

Please sign in to comment.