Sha256: a121c8784c15e9ec0429f081b8739056f32a9e9ef7ec93e1c8483d9bbda6ec6f

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

module Steering
  module Rails
    class Engine < ::Rails::Engine

      config.before_initialize do |app|
        if app.config.assets.enabled
          require "sprockets"
          Sprockets::Engines #force autoloading
          Sprockets.register_engine ".handlebars", Steering::Rails::Template
          Sprockets.register_engine ".hbs", Steering::Rails::Template
          Sprockets.register_engine ".hjs", Steering::Rails::Template
          Sprockets.register_engine ".hb", Steering::Rails::Template
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
steering-rails-1.3.0 lib/steering/rails/engine.rb
steering-rails-1.1.0 lib/steering/rails/engine.rb
steering-rails-1.0.0 lib/steering/rails/engine.rb