From 66bc0178492572d7bdc0dc5fab0a32aaacc2b2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Corcuera?= Date: Fri, 21 Sep 2012 12:29:24 -0500 Subject: Update examples in AS::Concern to use correct scope syntax. [ci skip] --- activesupport/lib/active_support/concern.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb index 4ad49236f9..fb7065ef3b 100644 --- a/activesupport/lib/active_support/concern.rb +++ b/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 -- cgit v1.2.3