Sha256: b74ce0452c14e08ec8bc95327685743fa4e4aec67cd014702bf9503d206c6dba
Contents?: true
Size: 746 Bytes
Versions: 1
Compression:
Stored size: 746 Bytes
Contents
# frozen_string_literal: true require "hanami/utils" require "hanami/router" require "hanami/controller" require "hanami/utils/string" require "hanami/utils/class" # Hanami # # @since 0.1.0 module Hanami # Hanami::Router enhancements # # @since 2.0.0 class Router # rubocop:disable Metrics/ParameterLists def mount(app, at:, host: nil, container: Hanami::Container, **args, &blk) super(app, at: at, host: host, **args, &blk) unless app.is_a?(Symbol) namespace = container["apps.#{app}.actions.namespace"] configuration = container["apps.#{app}.actions.configuration"] scope(at, namespace: namespace, configuration: configuration, &blk) end # rubocop:enable Metrics/ParameterLists end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.0.0.alpha1 | lib/hanami/frameworks.rb |