aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/concern.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/concern.rb')
-rw-r--r--activesupport/lib/active_support/concern.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/lib/active_support/concern.rb b/activesupport/lib/active_support/concern.rb
index fb7065ef3b..eeeba60839 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
@@ -77,10 +79,8 @@ module ActiveSupport
# module Foo
# extend ActiveSupport::Concern
# included do
- # class_eval do
- # def self.method_injected_by_foo
- # ...
- # end
+ # def self.method_injected_by_foo
+ # ...
# end
# end
# end