Fix deprecation warning in AS::Concern.

This commit is contained in:
José Valim
2012-02-13 15:29:26 +01:00
parent 92acd5d0e7
commit 305d5d5e90

View File

@@ -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