Skip to content

Commit

Permalink
commit review: applies guidelines to "# =>"
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Aug 12, 2010
1 parent cfad74c commit 599c505
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/base.rb
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/named_scope.rb
Expand Up @@ -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)
Expand Down

0 comments on commit 599c505

Please sign in to comment.