Class: SolidusBolt::Engine
- Inherits:
-
Rails::Engine
- Object
- Rails::Engine
- SolidusBolt::Engine
- Includes:
- SolidusSupport::EngineExtensions
- Defined in:
- lib/solidus_bolt/engine.rb
Class Method Summary collapse
Class Method Details
.bolt_config_credentials_hash ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/solidus_bolt/engine.rb', line 48 def bolt_config_credentials_hash begin bolt_config = SolidusBolt::BoltConfiguration.fetch rescue ActiveRecord::StatementInvalid bolt_config = nil ensure bolt_config_hash = { bolt_api_key: bolt_config&.api_key, bolt_signing_secret: bolt_config&.signing_secret, bolt_publishable_key: bolt_config&.publishable_key, } end bolt_config_hash end |
.bolt_credentials_hash ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/solidus_bolt/engine.rb', line 40 def bolt_credentials_hash { bolt_api_key: ENV['BOLT_API_KEY'], bolt_signing_secret: ENV['BOLT_SIGNING_SECRET'], bolt_publishable_key: ENV['BOLT_PUBLISHABLE_KEY'], } end |