Sha256: 9db471df6ecf230b030dbdda1270486b9db3b68eb1cc9f26b8f1064e97505225
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
require 'workarea' require 'workarea/storefront' require 'workarea/admin' require 'workarea/global_e/engine' require 'workarea/global_e/version' require 'workarea/global_e/error' module Workarea module GlobalE def self.config Workarea.config.global_e end def self.enabled? config.enabled && javascript_source.present? && css_source.present? end def self.javascript_source config.javascript_source end def self.css_source config.css_source end def self.merchant_guid config.merchant_guid end def self.shipping_discount_types config.shipping_discount_types end def self.environment (config.environment || Rails.env) .to_s .downcase .presence_in(domains.keys) || "qa" end def self.domains config.domains end def self.free_gift_discount_types config.free_gift_discount_types end def self.report_error(error) if defined? ::Raven Raven.capture_exception error else Rails.logger.debug error end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-global_e-1.3.0 | lib/workarea/global_e.rb |
workarea-global_e-1.2.1 | lib/workarea/global_e.rb |