Class: PandaCms::RecordVisitJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- PandaCms::RecordVisitJob
- Defined in:
- app/jobs/panda_cms/record_visit_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(url: nil, user_agent: nil, referrer: nil, ip_address: nil, page_id: nil, current_user_id: nil, params: [], visited_at: nil, redirect_id: nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/jobs/panda_cms/record_visit_job.rb', line 5 def perform( url: nil, user_agent: nil, referrer: nil, ip_address: nil, page_id: nil, current_user_id: nil, params: [], visited_at: nil, redirect_id: nil ) PandaCms::Visit.create!( url: url, user_agent: user_agent, referrer: referrer, ip_address: ip_address, page_id: page_id, redirect_id: redirect_id, user_id: current_user_id, params: params, visited_at: visited_at ) end |