Sha256: ea14006e995b397e5651ee28b636beb71906992c43ef19f4acd659aac665d615

Contents?: true

Size: 587 Bytes

Versions: 2

Compression:

Stored size: 587 Bytes

Contents

module SolidusAdminInsights
  class Engine < Rails::Engine
    require 'spree/core'
    require 'wicked_pdf'
    require 'csv'

    isolate_namespace Spree
    engine_name 'solidus_admin_insights'

    # use rspec for tests
    config.generators do |g|
      g.test_framework :rspec
    end

    def self.activate
      Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c|
        Rails.configuration.cache_classes ? require(c) : load(c)
      end
    end

    config.to_prepare &method(:activate).to_proc

    config.after_initialize do

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_admin_insights-2.1.1 lib/solidus_admin_insights/engine.rb
solidus_admin_insights-2.1.0 lib/solidus_admin_insights/engine.rb