lib/hanami/app.rb in hanami-2.1.0.beta1 vs lib/hanami/app.rb in hanami-2.1.0.beta2
- old
+ new
@@ -159,9 +159,14 @@
if Hanami.bundled?("rack")
require_relative "providers/rack"
register_provider(:rack, source: Hanami::Providers::Rack, namespace: true)
end
+
+ if Hanami.bundled?("hanami-assets")
+ require_relative "providers/assets"
+ register_provider(:assets, source: Providers::Assets.for_slice(self))
+ end
end
def prepare_autoloader
# Component dirs are automatically pushed to the autoloader by dry-system's zeitwerk plugin.
# This method adds other dirs that are not otherwise configured as component dirs.