diff options
Diffstat (limited to 'actionpack/lib/action_controller/url_rewriter.rb')
-rw-r--r-- | actionpack/lib/action_controller/url_rewriter.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionpack/lib/action_controller/url_rewriter.rb b/actionpack/lib/action_controller/url_rewriter.rb index 7aae619681..c650763fdb 100644 --- a/actionpack/lib/action_controller/url_rewriter.rb +++ b/actionpack/lib/action_controller/url_rewriter.rb @@ -21,13 +21,9 @@ module ActionController self.default_url_options = {} def self.included(base) #:nodoc: - original_optimise = ActionController::Routing.optimise_named_routes - ActionController::Routing.optimise_named_routes = false - ActionController::Routing::Routes.install_helpers base, :regenerate + ActionController::Routing::Routes.install_helpers base base.mattr_accessor :default_url_options base.default_url_options ||= default_url_options - ensure - ActionController::Routing.optimise_named_routes = original_optimise end # Generate a url based on the options provided, default_url_options and the |