Sha256: 068918bdc998ea0c2bbdbf41c701b30aa5764e214806a6ed47ffec2441c1d7c8

Contents?: true

Size: 544 Bytes

Versions: 3

Compression:

Stored size: 544 Bytes

Contents

require 'rails'

module Mercury
  class Engine < ::Rails::Engine

    paths['app/helpers']

    # Additional application configuration to include precompiled assets.
    initializer :assets, :group => :all do |app|
      app.config.assets.precompile += %w( mercury.js mercury.css mercury_overrides.css mercury_overrides.js )
    end

    # Require mercury authentication module and potentially other aspects later (so they can be overridden).
    initializer 'mercury.add_lib' do |app|
      require 'mercury/authentication'
    end

  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
kiteditor-1.0.12 lib/mercury/engine.rb
mercury-rails-0.9.0 lib/mercury/engine.rb
mercury-rails-0.8.0 lib/mercury/engine.rb