Sha256: 238eee2b2998233cdf14765f7a48b3398cf657b3ea7c284ffae2146e7d57b616

Contents?: true

Size: 399 Bytes

Versions: 6

Compression:

Stored size: 399 Bytes

Contents

module Exoskeleton
  class Engine < Rails::Engine
    initializer 'exoskeleton_jst_processor', after: :load_environment_hook do |app|
      unless Rails.application.config.respond_to?(:exoskeleton_base)
        raise 'You must define `config.exoskeleton_base = \'YOUR_APP_NAME\'` in application.rb!'
      end

      Rails.application.assets.register_engine('.jst', MyJstProcessor)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
exoskeleton-0.0.6 lib/exoskeleton/engine.rb
exoskeleton-0.0.5 lib/exoskeleton/engine.rb
exoskeleton-0.0.4 lib/exoskeleton/engine.rb
exoskeleton-0.0.3 lib/exoskeleton/engine.rb
exoskeleton-0.0.2 lib/exoskeleton/engine.rb
exoskeleton-0.0.1 lib/exoskeleton/engine.rb