method
app
rails latest stable - Class:
ActionDispatch::Routing::Mapper::Mapping
app(blocks)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/mapper.rb, line 279
def app(blocks)
if to.respond_to?(:action)
Routing::RouteSet::StaticDispatcher.new to
elsif to.respond_to?(:call)
Constraints.new(to, blocks, Constraints::CALL)
elsif blocks.any?
Constraints.new(dispatcher(defaults.key?(:controller)), blocks, Constraints::SERVE)
else
dispatcher(defaults.key?(:controller))
end
end