mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Fix deprecation warning in AS::Concern.
This commit is contained in:
@@ -114,7 +114,7 @@ module ActiveSupport
|
||||
if const_defined?("InstanceMethods")
|
||||
base.send :include, const_get("InstanceMethods")
|
||||
ActiveSupport::Deprecation.warn "The InstanceMethods module inside ActiveSupport::Concern will be " \
|
||||
"no longer included automatically. Please define instance methods directly in #{base} instead.", caller
|
||||
"no longer included automatically. Please define instance methods directly in #{self} instead.", caller
|
||||
end
|
||||
base.class_eval(&@_included_block) if instance_variable_defined?("@_included_block")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user