Sha256: 82357440ea23cbaaab37344c0a46d7c68892c208f8de86c128a4c5cffdb8cfc6

Contents?: true

Size: 434 Bytes

Versions: 6

Compression:

Stored size: 434 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

6 entries across 6 versions & 1 rubygems

Version Path
thecore_ui_layout_taris_website-1.2.1 lib/thecore_ui_layout_taris_website/engine.rb
thecore_ui_layout_taris_website-1.2.0 lib/thecore_ui_layout_taris_website/engine.rb
thecore_ui_layout_taris_website-1.1.9 lib/thecore_ui_layout_taris_website/engine.rb
thecore_ui_layout_taris_website-1.1.8 lib/thecore_ui_layout_taris_website/engine.rb
thecore_ui_layout_taris_website-1.1.7 lib/thecore_ui_layout_taris_website/engine.rb
thecore_ui_layout_taris_website-1.1.5 lib/thecore_ui_layout_taris_website/engine.rb