module Eventy
Constants
- VERSION
Public Class Methods
configure(options = {})
click to toggle source
# File lib/eventy.rb, line 5 def self.configure(options = {}) case options[:backend].to_sym when :active_record require "eventy/backends/active_record" when :active_record_hstore require "eventy/backends/active_record_hstore" end end
record(event_name, identity, properties = {})
click to toggle source
# File lib/eventy.rb, line 14 def self.record(event_name, identity, properties = {}) begin Event.record(event_name, identity, properties) rescue NameError raise "You must call Eventy.configure with a :backend option before calling Eventy.record" end end