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



421
422
423
# File 'lib/spree/core.rb', line 421

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

#events=(value) ⇒ Object



425
426
427
# File 'lib/spree/core.rb', line 425

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

#handlersObject



429
430
431
# File 'lib/spree/core.rb', line 429

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

#handlers=(value) ⇒ Object



433
434
435
# File 'lib/spree/core.rb', line 433

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