Sha256: b2e037029adf349e90aa4f9ad4bf58de53daab295724476da0a3b0165bda27be

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

module SpreeGridFaq
  class Engine < Rails::Engine
    engine_name 'spree_grid_faq'

    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

4 entries across 4 versions & 1 rubygems

Version Path
spree_grid_faq-0.1.0 lib/spree_grid_faq/engine.rb
spree_grid_faq-0.0.9 lib/spree_grid_faq/engine.rb
spree_grid_faq-0.0.8 lib/spree_grid_faq/engine.rb
spree_grid_faq-0.0.7 lib/spree_grid_faq/engine.rb