1
0
Fork 0
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:
Joshua Peek 2009-11-23 18:59:17 -06:00
parent eeb1f472a5
commit ef771552b7

View file

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