Sha256: 6269b60f80f680b54d62cf5d536e48edc5663615667e4ca559dfea3c1f64980c

Contents?: true

Size: 493 Bytes

Versions: 111

Compression:

Stored size: 493 Bytes

Contents

module <%= class_name %>
  class Engine < Rails::Engine
    require 'spree/core'
    isolate_namespace Spree
    engine_name '<%= file_name %>'

    # 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

111 entries across 111 versions & 2 rubygems

Version Path
spree_cmd-3.1.4 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.2.0.rc3 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.2.0.rc2 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.2.0.rc1 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.3 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.2 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.10 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.1 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.0 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.0.rc4 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.9 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.0.rc3 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.0.rc2 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.1.0.rc1 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.8 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.7 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.6.1 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.6 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.5 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt
spree_cmd-3.0.4 lib/spree_cmd/templates/extension/lib/%file_name%/engine.rb.tt