lib/hanami/configuration.rb in hanami-1.3.2 vs lib/hanami/configuration.rb in hanami-1.3.3
- old
+ new
@@ -18,22 +18,25 @@
# Mount a Hanami::Application or a Rack app
#
# @param app [#call] an application compatible with Rack SPEC
# @param options [Hash] a set of options
# @option :at [String] options the mount point
+ # @option :host [String] options the mount point
#
# @since 0.9.0
#
# @example
# # config/environment.rb
# # ...
# Hanami.configure do
+ # mount Beta::Application, at: '/', host: 'beta.bookshelf.com'
+ # mount Admin::Application, at: '/api'
# mount Web::Application, at: '/'
#
# # ...
# end
def mount(app, options)
- mounted[app] = App.new(app, options.fetch(:at))
+ mounted[app] = App.new(app, options)
end
# Configure database
#
# @param blk [Proc] the database configuration