mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Don't really care about reloading routes when inflections are
changed.
This commit is contained in:
parent
eeb1f472a5
commit
ef771552b7
1 changed files with 0 additions and 11 deletions
|
@ -366,16 +366,5 @@ module ActionDispatch
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
ActiveSupport::Inflector.module_eval do
|
||||
# Ensures that routes are reloaded when Rails inflections are updated.
|
||||
def inflections_with_route_reloading(&block)
|
||||
returning(inflections_without_route_reloading(&block)) {
|
||||
ActionDispatch::Routing::Routes.reload! if block_given?
|
||||
}
|
||||
end
|
||||
|
||||
alias_method_chain :inflections, :route_reloading
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue