Sha256: 7e2cabf1019291c2cee7cdf6839c84ebaba8e7b200503fc79b7269a5e091b1b7

Contents?: true

Size: 530 Bytes

Versions: 4

Compression:

Stored size: 530 Bytes

Contents

# frozen_string_literal: true

require 'solidus_core'
require 'solidus_support'

module SolidusBling
  class Engine < Rails::Engine
    include SolidusSupport::EngineExtensions

    isolate_namespace ::Spree

    engine_name 'solidus_bling'

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

    config.to_prepare do
      Spree::Bus.register(:erp_products_updated)
      Spree::Bus.register(:erp_contato_created)
      Bling::Subscriber.new.subscribe_to(Spree::Bus)
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus_bling-1.0.3 lib/solidus_bling/engine.rb
solidus_bling-1.0.2 lib/solidus_bling/engine.rb
solidus_bling-1.0.1 lib/solidus_bling/engine.rb
solidus_bling-1.0.0 lib/solidus_bling/engine.rb