Sha256: cb07758e39e9972cf94703f761921b88899798b089832719d22206488f21ebd7

Contents?: true

Size: 610 Bytes

Versions: 89

Compression:

Stored size: 610 Bytes

Contents

module Spree
  module Core
    class Engine < ::Rails::Engine
      def self.api_available?
        @@api_available ||= ::Rails::Engine.subclasses.map(&:instance).map { |e| e.class.to_s }.include?('Spree::Api::Engine')
      end

      def self.backend_available?
        @@backend_available ||= ::Rails::Engine.subclasses.map(&:instance).map { |e| e.class.to_s }.include?('Spree::Backend::Engine')
      end

      def self.frontend_available?
        @@frontend_available ||= ::Rails::Engine.subclasses.map(&:instance).map { |e| e.class.to_s }.include?('Spree::Frontend::Engine')
      end
    end
  end
end

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
spree_core-4.0.9 lib/spree/core/components.rb
spree_core-4.1.15 lib/spree/core/components.rb
spree_core-4.2.7 lib/spree/core/components.rb
spree_core-4.2.6 lib/spree/core/components.rb
spree_core-4.2.5 lib/spree/core/components.rb
spree_core-4.1.14 lib/spree/core/components.rb
spree_core-4.0.8 lib/spree/core/components.rb
spree_core-4.2.4 lib/spree/core/components.rb
spree_core-3.7.14.1 lib/spree/core/components.rb
spree_core-4.2.3.1 lib/spree/core/components.rb
spree_core-4.1.13.1 lib/spree/core/components.rb
spree_core-4.0.7.1 lib/spree/core/components.rb
spree_core-4.2.3 lib/spree/core/components.rb
spree_core-4.2.2 lib/spree/core/components.rb
spree_core-4.2.1 lib/spree/core/components.rb
spree_core-4.0.7 lib/spree/core/components.rb
spree_core-3.7.14 lib/spree/core/components.rb
spree_core-4.2.0 lib/spree/core/components.rb
spree_core-4.2.0.rc5 lib/spree/core/components.rb
spree_core-4.2.0.rc4 lib/spree/core/components.rb