Permalink
Browse files

commit review: applies guidelines to "# =>"

  • Loading branch information...
1 parent cfad74c commit 599c50583784537eec454f5e91dac89f88e54da3 @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 599c505

Please sign in to comment.