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



401
402
403
# File 'lib/spree/core.rb', line 401

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

#events=(value) ⇒ Object



405
406
407
# File 'lib/spree/core.rb', line 405

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

#handlersObject



409
410
411
# File 'lib/spree/core.rb', line 409

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

#handlers=(value) ⇒ Object



413
414
415
# File 'lib/spree/core.rb', line 413

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