Sha256: 8fcd8e5c49db93d3e4e7a70aed163519ea303d91e0264dcd047bb70d8ea1fc9e

Contents?: true

Size: 500 Bytes

Versions: 3

Compression:

Stored size: 500 Bytes

Contents

module SpreeEssentialMenus
  class Engine < Rails::Engine
    engine_name 'spree_essential_menus'

    config.autoload_paths += %W(#{config.root}/lib)

    # 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
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
spree_essential_menus-0.2.6 lib/spree_essential_menus/engine.rb
spree_essential_menus-0.2.3 lib/spree_essential_menus/engine.rb
spree_essential_menus-0.1.8 lib/spree_essential_menus/engine.rb