Class: Spree::AnalyticsConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/spree/core.rb

Overview

Group analytics configuration options together, but still make it backwards compatible.

Instance Method Summary collapse

Instance Method Details

#eventsObject



347
348
349
# File 'lib/spree/core.rb', line 347

def events
  Rails.application.config.spree.analytics_events
end

#events=(value) ⇒ Object



351
352
353
# File 'lib/spree/core.rb', line 351

def events=(value)
  Rails.application.config.spree.analytics_events = value
end

#handlersObject



355
356
357
# File 'lib/spree/core.rb', line 355

def handlers
  Rails.application.config.spree.analytics_event_handlers
end

#handlers=(value) ⇒ Object



359
360
361
# File 'lib/spree/core.rb', line 359

def handlers=(value)
  Rails.application.config.spree.analytics_event_handlers = value
end