2025-01-27 00:43:18 +08:00
|
|
|
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)
|
2025-01-27 00:43:36 +08:00
|
|
|
[ "id", "id_value", "name", "properties", "time", "user_id", "visit_id" ]
|
2025-01-27 00:43:18 +08:00
|
|
|
end
|
|
|
|
end
|