Sha256: 6fdaee84ce322d83946e81b85a892fe10842943bfa918938a3e83bec355c5797
Contents?: true
Size: 331 Bytes
Versions: 4
Compression:
Stored size: 331 Bytes
Contents
module App::AppLog extend Waxx::Object extend self def log(x, cat:'', name:'', value:'', id:nil) x.db.exec("INSERT INTO app_log (usr_id, category, name, value, related_id, ip_address) VALUES ($1, $2, $3, $4, $5, $6)", [x.usr['id'], cat, name, value, id, x.req.env['X-Forwarded-For']] ) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
waxx-0.2.0 | skel/app/app/log/app_log.rb |
waxx-0.1.4 | skel/app/app/log/app_log.rb |
waxx-0.1.3 | skel/app/app/log/app_log.rb |
waxx-0.1.2 | skel/app/app/log/app_log.rb |