Module: WardenWatch::Model

Extended by:
ActiveSupport::Concern
Defined in:
lib/warden_watch/model.rb

Instance Method Summary collapse

Instance Method Details

#track_visit!(auth, opts) ⇒ Object



13
14
15
16
17
18
# File 'lib/warden_watch/model.rb', line 13

def track_visit!(auth, opts)
  req = Rack::Request.new(auth.env)
  visits.create! do |v|
    v.ip_address = req.ip
  end
end