1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Aaron Patterson 2015-03-01 13:35:24 -08:00
parent 1d10b4bdac
commit cad20f720c
2 changed files with 6 additions and 6 deletions

View file

@ -184,12 +184,6 @@ module ActionDispatch
def _routes_context
self
end
private
def _generate_paths_by_default
true
end
end
end
end

View file

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