Sha256: 7bab677bb121c472b748f575f163d3c8c999dfa9d6423b75ee4539ce394e1066
Contents?: true
Size: 652 Bytes
Versions: 4
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true module Hanami # @api private module Providers # Provider source to register routes helper component in Hanami slices. # # @see Hanami::Slice::RoutesHelper # # @api private # @since 2.0.0 class Assets < Hanami::Provider::Source # @api private def prepare require "hanami/assets" end # @api private def start root = slice.app.root.join("public", "assets", Hanami::Assets.public_assets_dir(target).to_s) assets = Hanami::Assets.new(config: slice.config.assets, root: root) register(:assets, assets) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hanami-2.2.1 | lib/hanami/providers/assets.rb |
hanami-2.2.0 | lib/hanami/providers/assets.rb |
hanami-2.2.0.rc1 | lib/hanami/providers/assets.rb |
hanami-2.2.0.beta2 | lib/hanami/providers/assets.rb |