Class: Bh::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- Bh::Engine
- Defined in:
- lib/bh/engine.rb
Overview
Hooks the gem into a host app: serves the built stylesheet and script, and the helpers.
Constant Summary collapse
- PREFIX =
Where the built files answer from: one prefix of the gem's own, so a host already serving
/cssfrom somewhere else keeps it. The slash is kept, sinceRack::Staticmatches onstart_with?and/bhwould swallow a host's own/bhutan. '/bh/'.freeze
- HEADERS =
Neither URL carries a version, so both are asked for again on every full load and answered
304 Not Modifiedwhile the file they name still stands. [[:all, { 'cache-control' => 'no-cache' }]].freeze