module ActionDispatch::Routing::DirectRoutes::Mapper

Public Instance Methods

direct(name, options = {}, &block) click to toggle source
# File lib/action_dispatch/routing/direct_routes/mapper.rb, line 7
def direct(name, options = {}, &block)
  unless @scope.root?
    raise RuntimeError, "The direct method can't be used inside a routes scope block"
  end

  @set.add_url_helper(name, options, &block)
end