songtianlun
50321533f7
- Removed unnecessary leading and trailing blank lines in several ActiveAdmin register files. - Reformatted string delimiters for consistency, changing single quotes to double quotes in tracking events in the Cities and WeatherArts controllers. - Ensured proper spacing in array definitions across several models, including Ahoy::Event and Ahoy::Visit. These changes improve code readability and maintain consistency throughout the codebase by ensuring uniform use of quotes and removing excess whitespace.
11 lines
554 B
Ruby
11 lines
554 B
Ruby
class Ahoy::Visit < ApplicationRecord
|
|
self.table_name = "ahoy_visits"
|
|
|
|
has_many :events, class_name: "Ahoy::Event"
|
|
belongs_to :user, optional: true
|
|
|
|
def self.ransackable_attributes(auth_object = nil)
|
|
[ "app_version", "browser", "city", "country", "device_type", "id", "ip", "landing_page", "latitude", "longitude", "os", "os_version", "platform", "referrer", "referring_domain", "region", "started_at", "user_agent", "user_id", "utm_campaign", "utm_content", "utm_medium", "utm_source", "utm_term", "visit_token", "visitor_token" ]
|
|
end
|
|
end
|