15 lines
338 B
Ruby
15 lines
338 B
Ruby
|
class Ahoy::Event < ApplicationRecord
|
||
|
# include Ahoy::QueryMethods
|
||
|
|
||
|
self.table_name = "ahoy_events"
|
||
|
|
||
|
belongs_to :visit
|
||
|
belongs_to :user, optional: true
|
||
|
|
||
|
serialize :properties, coder: JSON
|
||
|
|
||
|
def self.ransackable_attributes(auth_object = nil)
|
||
|
["id", "id_value", "name", "properties", "time", "user_id", "visit_id"]
|
||
|
end
|
||
|
end
|