Sha256: 198eeb95add40db82925f8a96d7560903293e17f4a3f9f636562e5165977272b

Contents?: true

Size: 589 Bytes

Versions: 2

Compression:

Stored size: 589 Bytes

Contents

module MnoEnterprise
  module Api
    class Engine < ::Rails::Engine
      isolate_namespace MnoEnterprise
      # To be able to load lib/mno_enterprise/concerns/...
      config.autoload_paths += Dir["#{config.root}/lib/**/"]

      # Add assets
      if config.respond_to? (:assets)
        config.assets.precompile += %w( mno_enterprise/config.js mno_enterprise/error_page.js )

        # Allow sprockets to find file in the config/ path
        config.before_configuration do
          config.assets.paths.unshift Rails.root.join('config').to_s
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 lib/mno_enterprise/api/engine.rb
mno-enterprise-api-3.3.3 lib/mno_enterprise/api/engine.rb