Sha256: 20a9db8c74eee545ffb0bca0ae92b4eec11e70d8fe2fe1928d134c334dcf83f0

Contents?: true

Size: 432 Bytes

Versions: 1

Compression:

Stored size: 432 Bytes

Contents

module ThecoreUiLayoutTarisWebsite
  class Engine < ::Rails::Engine
    # This code makes the static assets present in this 
    # engine available to main app, even if this gem is 
    # just a dependency of another engine
    initializer 'thecore_ui_layout_taris_website.load_static_assets' do |app|
      puts "Loading static assets for #{root}"
      app.middleware.use ::ActionDispatch::Static, "#{root}/app"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thecore_ui_layout_taris_website-1.1.4 lib/thecore_ui_layout_taris_website/engine.rb