diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb index 11d257efb66c3..e696c866da98f 100644 --- a/activesupport/lib/active_support/core_ext/module/delegation.rb +++ b/activesupport/lib/active_support/core_ext/module/delegation.rb @@ -145,9 +145,10 @@ def #{prefix}#{method}(*args, &block) # def cu klass = to.singleton_methods.any? ? to.singleton_class : to.class # klass = to.singleton_methods.any? ? to.singleton_class : to.class unless klass.public_method_defined?(#{method.inspect}) # unless klass.public_method_defined?(:name) ActiveSupport::Deprecation.warn( # ActiveSupport::Deprecation.warn( - "Using Module#delegate to delegate to non-public methods is " \ # "..." \ - "deprecated. Please declare your methods as public if they " \ # "..." \ - "are going to accessed from other classes." # "..." + "Using Module#delegate to delegate to non-public methods is " + # "..." + + "deprecated. Please declare your methods as public if they " + # "..." + + "are going to accessed from other classes.", # "...", + [#{"#{file}:#{line}".inspect}] # ["app/models/firm.rb:16"] ) # ) end # end #