Permalink
Browse files

Update examples in AS::Concern to use correct scope syntax. [ci skip]

  • Loading branch information...
1 parent 3b7947e commit 66bc0178492572d7bdc0dc5fab0a32aaacc2b2a9 @jcorcuera jcorcuera committed Sep 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/lib/active_support/concern.rb
@@ -4,7 +4,7 @@ module ActiveSupport
# module M
# def self.included(base)
# base.extend ClassMethods
- # scope :disabled, where(disabled: true)
+ # scope :disabled, -> { where(disabled: true) }
# end
#
# module ClassMethods
@@ -21,7 +21,7 @@ module ActiveSupport
# extend ActiveSupport::Concern
#
# included do
- # scope :disabled, where(disabled: true)
+ # scope :disabled, -> { where(disabled: true) }
# end
#
# module ClassMethods

0 comments on commit 66bc017

Please sign in to comment.