Permalink
Browse files

logger params

  • Loading branch information...
1 parent 9622fbf commit fdb2f8bfe014119ae7ec5779f1e1509cadf1d44e @zbruhnke committed May 15, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/models/chat.rb
View
@@ -2,9 +2,10 @@ class Chat < ActiveRecord::Base
attr_accessible :browser, :city, :country, :country_code, :email_address, :fullname, :olark_id, :visitor_id, :ip, :kind, :operating_system, :organization, :region, :data
def self.new_from_json(params)
- p params
+ Rails.logger.info "before parse: " + params
params = JSON.parse(params[:data])
- p params
+ Rails.logger.info "after parse: " + params
+ Rails.logger.info "Class:" + params.class
new({
kind: params[:kind],
olark_id: params[:olark_id],

0 comments on commit fdb2f8b

Please sign in to comment.