Sha256: 58e05cf237d18efb53a285840e14bc1c952a9fc0d2ae8ba6e36beb6d0bd4f14c

Contents?: true

Size: 546 Bytes

Versions: 2

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require 'solidus_core'
require 'solidus_support'

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

    isolate_namespace ::Spree

    engine_name 'solidus_reviews'

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

    config.to_prepare do
      ::Spree::Ability.register_ability(::Spree::ReviewsAbility)
    end

    if SolidusSupport.api_available?
      paths["app/controllers"] << "lib/controllers"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 lib/solidus_reviews/engine.rb
solidus_reviews-1.6.0 lib/solidus_reviews/engine.rb