From cad20f720c4c6e04584253cd0a23f22b3d43ab0f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sun, 1 Mar 2015 13:35:24 -0800 Subject: move _generate_paths_by_default to where it is used _generate_paths_by_default wasn't used in AD::Routing::UrlFor, so we should be able to move it where it is used in AV::Routing --- actionview/lib/action_view/routing_url_for.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/routing_url_for.rb b/actionview/lib/action_view/routing_url_for.rb index f281333a41..0371db07dc 100644 --- a/actionview/lib/action_view/routing_url_for.rb +++ b/actionview/lib/action_view/routing_url_for.rb @@ -130,5 +130,11 @@ module ActionView controller.optimize_routes_generation? : super end protected :optimize_routes_generation? + + private + + def _generate_paths_by_default + true + end end end -- cgit v1.2.3