Module: Spree::Core

Defined in:
lib/spree/core.rb,
lib/spree/core/engine.rb,
lib/spree/core/importer.rb,
lib/spree/core/permalinks.rb,
lib/spree/core/environment.rb,
lib/spree/core/search/base.rb,
lib/spree/core/importer/order.rb,
lib/spree/core/search/variant.rb,
lib/spree/core/state_machines.rb,
lib/spree/core/product_filters.rb,
lib/spree/core/versioned_value.rb,
lib/spree/core/importer/product.rb,
lib/spree/core/class_constantizer.rb,
lib/spree/core/stock_configuration.rb,
lib/spree/core/state_machines/order.rb,
lib/spree/core/environment_extension.rb,
lib/spree/core/environment/promotions.rb,
lib/spree/core/state_machines/payment.rb,
lib/spree/core/controller_helpers/auth.rb,
lib/spree/core/environment/calculators.rb,
lib/spree/core/state_machines/shipment.rb,
lib/spree/core/controller_helpers/order.rb,
lib/spree/core/controller_helpers/store.rb,
lib/spree/core/controller_helpers/common.rb,
lib/spree/core/controller_helpers/search.rb,
lib/spree/core/controller_helpers/pricing.rb,
lib/spree/core/state_machines/reimbursement.rb,
lib/spree/core/state_machines/inventory_unit.rb,
lib/spree/core/controller_helpers/current_host.rb,
lib/spree/core/state_machines/return_authorization.rb,
lib/spree/core/controller_helpers/strong_parameters.rb,
lib/spree/core/state_machines/return_item/reception_status.rb,
lib/spree/core/state_machines/return_item/acceptance_status.rb

Defined Under Namespace

Modules: ClassConstantizer, ControllerHelpers, EnvironmentExtension, Importer, Permalinks, ProductFilters, Search Classes: Engine, Environment, GatewayError, StateMachines, StockConfiguration, VersionedValue

Class Method Summary collapse

Class Method Details

.has_install_generator_been_run?(rails_paths: Rails.application.paths, initializer_name: 'spree.rb', dummy_app_name: 'DummyApp::Application') ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

67
68
69
70
# File 'lib/spree/core.rb', line 67

def self.has_install_generator_been_run?(rails_paths: Rails.application.paths, initializer_name: 'spree.rb', dummy_app_name: 'DummyApp::Application')
  does_spree_initializer_exist?(rails_paths, initializer_name) ||
    running_solidus_test_suite_with_dummy_app?(dummy_app_name)
end