lib/hanami/welcome.rb in hanami-1.0.0 vs lib/hanami/welcome.rb in hanami-1.1.0.beta1
- old
+ new
@@ -19,28 +19,18 @@
[200, {}, @body]
end
# @api private
def application_name
- " #{ app }" if container?
+ application_class.app_name
end
private
# @api private
- def container?
- Environment.new.container?
- end
-
- # @api private
def application_class
Hanami.configuration.apps do |app|
return app if @request_path.include?(app.path_prefix)
end
- end
-
- # @api private
- def app
- application_class.app_name
end
end
end