Skip to content

Commit

Permalink
Don't really care about reloading routes when inflections are
Browse files Browse the repository at this point in the history
changed.
  • Loading branch information
josh committed Nov 24, 2009
1 parent eeb1f47 commit ef77155
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions actionpack/lib/action_dispatch/routing.rb
Expand Up @@ -366,16 +366,5 @@ def controller_relative_to(controller, previous)
end end
end 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
end end

0 comments on commit ef77155

Please sign in to comment.