diff --git a/actionpack/lib/action_dispatch/routing/url_for.rb b/actionpack/lib/action_dispatch/routing/url_for.rb index be5edcc120..0ab20dcb39 100644 --- a/actionpack/lib/action_dispatch/routing/url_for.rb +++ b/actionpack/lib/action_dispatch/routing/url_for.rb @@ -152,7 +152,7 @@ module ActionDispatch when Hash # Handle the deprecated instance level default_url_options if respond_to?(:default_url_options, true) - ActiveSupport::Deprecation.warn "Overwriting #default_url_options is deprecated. Please set url options with self.url_options = { ... }" + ActiveSupport::Deprecation.warn "Overriding the #default_url_options method is deprecated. Instead, set self.url_options = { ... } in a before_filter." if defaults = default_url_options(options) options = defaults.merge(options) end @@ -165,4 +165,4 @@ module ActionDispatch end end end -end \ No newline at end of file +end