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:
parent
1d10b4bdac
commit
cad20f720c
2 changed files with 6 additions and 6 deletions
|
@ -184,12 +184,6 @@ module ActionDispatch
|
|||
def _routes_context
|
||||
self
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def _generate_paths_by_default
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue