From d0ba816fcf9a373949a920bbd7e91f113d956884 Mon Sep 17 00:00:00 2001 From: maximerety Date: Thu, 15 Nov 2012 19:16:36 +0100 Subject: Fix AS::Concern example (current example doesn't work) --- activesupport/lib/active_support/concern.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb index fb7065ef3b..45bccd21c1 100644 --- a/activesupport/lib/active_support/concern.rb +++ b/activesupport/lib/active_support/concern.rb @@ -4,7 +4,9 @@ module ActiveSupport # module M # def self.included(base) # base.extend ClassMethods - # scope :disabled, -> { where(disabled: true) } + # base.class_eval do + # scope :disabled, -> { where(disabled: true) } + # end # end # # module ClassMethods -- cgit v1.2.3