Class: Ahoy::VisitsController

Inherits:
BaseController show all
Defined in:
app/controllers/ahoy/visits_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



3
4
5
6
# File 'app/controllers/ahoy/visits_controller.rb', line 3

def create
  ahoy.track_visit
  render json: {visit_id: ahoy.visit_id, visitor_id: ahoy.visitor_id}
end