lib/hanami/components/app/controller.rb in hanami-0.9.2 vs lib/hanami/components/app/controller.rb in hanami-1.0.0.beta1
- old
+ new
@@ -26,9 +26,10 @@
namespace = app.namespace
unless namespace.const_defined?('Controller', false)
controller = Hanami::Controller.duplicate(namespace) do
handle_exceptions config.handle_exceptions
+ public_directory Hanami.public_directory
default_request_format config.default_request_format
default_response_format config.default_response_format
default_headers(
Hanami::Config::Security::X_FRAME_OPTIONS_HEADER => config.security.x_frame_options,
Hanami::Config::Security::X_CONTENT_TYPE_OPTIONS_HEADER => config.security.x_content_type_options,