Sha256: 950b2ce6178337285314e895b0406b30dc73632e9b38715674d04a5b382a16cd

Contents?: true

Size: 516 Bytes

Versions: 6

Compression:

Stored size: 516 Bytes

Contents

module SpreeGridFeed
  class Engine < Rails::Engine
    engine_name 'spree_grid_feed'
    isolate_namespace Spree

    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

6 entries across 6 versions & 1 rubygems

Version Path
spree_grid_feed-1.1.8 lib/spree_grid_feed/engine.rb
spree_grid_feed-1.1.7 lib/spree_grid_feed/engine.rb
spree_grid_feed-1.1.6 lib/spree_grid_feed/engine.rb
spree_grid_feed-1.1.5 lib/spree_grid_feed/engine.rb
spree_grid_feed-1.1.4 lib/spree_grid_feed/engine.rb
spree_grid_feed-1.1.3 lib/spree_grid_feed/engine.rb