instance method inflections_with_route_reloading

Ruby on Rails 2.3.18

Since v2.2.3 Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

inflections_with_route_reloading(&block)

Ensures that routes are reloaded when Rails inflections are updated.

Parameters

block block
Source
# File actionpack/lib/action_controller/routing.rb, line 379
      def inflections_with_route_reloading(&block)
        (inflections_without_route_reloading(&block)).tap {
          ActionController::Routing::Routes.reload! if block_given?
        }
      end

Defined in actionpack/lib/action_controller/routing.rb line 379 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Routing

Type at least 2 characters to search.

↑↓ navigate · open · esc close