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



344
345
346
# File 'lib/spree/core.rb', line 344

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

#events=(value) ⇒ Object



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

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

#handlersObject



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

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

#handlers=(value) ⇒ Object



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

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