Skip to content

Instantly share code, notes, and snippets.

@patrickespake
Created April 28, 2015 01:23
Show Gist options
  • Save patrickespake/5a3591a8c65c3e41da16 to your computer and use it in GitHub Desktop.
Save patrickespake/5a3591a8c65c3e41da16 to your computer and use it in GitHub Desktop.
Log atividade 11
Started PATCH "/backoffice/clientes/17086" for 127.0.0.1 at 2015-04-27 22:22:28 -0300
Processing by Backoffice::CustomersController#update as JS
Parameters: {"utf8"=>"✓", "origin"=>"file_fields", "file_field_id"=>"34507", "customer"=>{"dest_nome"=>"ADAISE BORGES ", "dest_cep"=>"34000000", "dest_endereco"=>"RUA F 189 ", "dest_numero"=>"", "dest_complemento"=>"", "dest_bairro"=>"MONTE CASTELO", "dest_cidade"=>"NOVA LIMA", "dest_uf"=>"MG", "obs"=>"", "dest_fone1"=>"(31) 35413846", "dest_fone2"=>"(31) 88746946", "file_fields_attributes"=>{"0"=>{"histories"=>{"phone"=>"3188637619", "reason_id"=>"27", "description"=>"Teste do Patrick.", "reschedule_in(3i)"=>"", "reschedule_in(2i)"=>"", "reschedule_in(1i)"=>"", "reschedule_in(4i)"=>"", "reschedule_in(5i)"=>"", "user_id"=>"60"}, "id"=>"34507"}}}, "commit"=>"Salvar", "id"=>"17086"}
User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = 60 ORDER BY "users"."id" ASC LIMIT 1
Company Load (0.7ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = $1 LIMIT 1 [["id", 3]]
FileField Load (0.7ms) SELECT "file_fields".* FROM "file_fields" WHERE "file_fields"."id" = $1 LIMIT 1 [["id", "34507"]]
Customer Load (0.4ms) SELECT "customers".* FROM "customers" WHERE "customers"."id" = $1 LIMIT 1 [["id", "17086"]]
Company Load (0.5ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = $1 LIMIT 1 [["id", 2]]
Mailing Load (0.5ms) SELECT "mailings".* FROM "mailings" WHERE "mailings"."id" = $1 LIMIT 1 [["id", 137]]
Unpermitted parameters: file_fields_attributes
(0.3ms) BEGIN
Customer Exists (0.5ms) SELECT 1 AS one FROM "customers" WHERE ("customers"."codar" = '4364742635' AND "customers"."id" != 17086) LIMIT 1
History Load (33.3ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.2ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.1ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.2ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.1ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
Could not log "sql.active_record" event. NoMethodError: undefined method `bytesize' for nil:NilClass ["/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/log_subscriber.rb:26:in `render_bind'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/log_subscriber.rb:49:in `block in sql'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/log_subscriber.rb:48:in `map'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/log_subscriber.rb:48:in `sql'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/subscriber.rb:68:in `finish'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/log_subscriber.rb:83:in `finish'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications/fanout.rb:96:in `finish'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications/fanout.rb:40:in `block in finish'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications/fanout.rb:40:in `each'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications/fanout.rb:40:in `finish'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications/instrumenter.rb:36:in `finish'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications/instrumenter.rb:25:in `instrument'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract_adapter.rb:437:in `log'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql/database_statements.rb:156:in `exec_delete'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:103:in `update'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/persistence.rb:504:in `_update_record'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/locking/optimistic.rb:70:in `_update_record'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/attribute_methods/dirty.rb:74:in `_update_record'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/callbacks.rb:310:in `block in _update_record'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:373:in `_run__2496722383740657373__update__callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/callbacks.rb:310:in `_update_record'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/timestamp.rb:70:in `_update_record'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/persistence.rb:481:in `create_or_update'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/callbacks.rb:302:in `block in create_or_update'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:383:in `_run__2496722383740657373__save__callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/callbacks.rb:302:in `create_or_update'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/persistence.rb:103:in `save'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/validations.rb:51:in `save'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/attribute_methods/dirty.rb:32:in `save'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:270:in `block (2 levels) in save'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:209:in `transaction'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:327:in `with_transaction_returning_status'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:270:in `block in save'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:285:in `rollback_active_record_state!'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:269:in `save'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/persistence.rb:231:in `block in update'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:330:in `block in with_transaction_returning_status'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:203:in `block in transaction'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `within_new_transaction'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:203:in `transaction'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:209:in `transaction'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/transactions.rb:327:in `with_transaction_returning_status'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/persistence.rb:229:in `update'", "/Users/patrickespake/Projects/telequality/flash/app/controllers/backoffice/customers_controller.rb:71:in `update'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal/implicit_render.rb:4:in `send_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/abstract_controller/base.rb:189:in `process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal/rendering.rb:10:in `process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/abstract_controller/callbacks.rb:18:in `block in process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:433:in `_run__1350194398096759462__process_action__callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/abstract_controller/callbacks.rb:17:in `process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal/rescue.rb:29:in `process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications.rb:159:in `block in instrument'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/notifications.rb:159:in `instrument'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal/instrumentation.rb:30:in `process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/railties/controller_runtime.rb:18:in `process_action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/abstract_controller/base.rb:136:in `process'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/abstract_controller/rendering.rb:44:in `process'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal.rb:195:in `dispatch'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_controller/metal.rb:231:in `block in action'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:82:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:82:in `dispatch'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:50:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/journey/router.rb:71:in `block in call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/journey/router.rb:59:in `each'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/journey/router.rb:59:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/routing/route_set.rb:676:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/params_parser.rb:27:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/flash.rb:241:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/cookies.rb:486:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/query_cache.rb:36:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activerecord-4.0.13/lib/active_record/migration.rb:373:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:373:in `_run__2846168137430834560__call__callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/callbacks.rb:80:in `run_callbacks'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/callbacks.rb:27:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/reloader.rb:64:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/railties-4.0.13/lib/rails/rack/logger.rb:38:in `call_app'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/railties-4.0.13/lib/rails/rack/logger.rb:20:in `block in call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb:68:in `block in tagged'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb:26:in `tagged'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/tagged_logging.rb:68:in `tagged'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/railties-4.0.13/lib/rails/rack/logger.rb:20:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/request_id.rb:21:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/activesupport-4.0.13/lib/active_support/cache/strategy/local_cache.rb:83:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/actionpack-4.0.13/lib/action_dispatch/middleware/static.rb:84:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/honeybadger-2.0.11/lib/honeybadger/rack/error_notifier.rb:33:in `block in call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/honeybadger-2.0.11/lib/honeybadger/config.rb:189:in `with_request'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/honeybadger-2.0.11/lib/honeybadger/rack/error_notifier.rb:30:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/honeybadger-2.0.11/lib/honeybadger/rack/user_feedback.rb:28:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/honeybadger-2.0.11/lib/honeybadger/rack/user_informer.rb:18:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/railties-4.0.13/lib/rails/engine.rb:511:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/railties-4.0.13/lib/rails/application.rb:97:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'", "/Users/patrickespake/.rvm/gems/ruby-2.0.0-p598@flash/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'", "/Users/patrickespake/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'", "/Users/patrickespake/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'", "/Users/patrickespake/.rvm/rubies/ruby-2.0.0-p598/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'"]
(3.4ms) COMMIT
FileField Load (0.7ms) SELECT "file_fields".* FROM "file_fields" WHERE "file_fields"."id" = $1 LIMIT 1 [["id", 34507]]
(0.2ms) BEGIN
Reason Load (0.6ms) SELECT "reasons".* FROM "reasons" WHERE "reasons"."id" = $1 LIMIT 1 [["id", 27]]
User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 60]]
SQL (0.7ms) INSERT INTO "histories" ("company_id", "company_name", "created_at", "description", "mailing_id", "mailing_name", "phone", "reason_id", "updated_at", "user_id", "user_name") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["company_id", 2], ["company_name", "alianca"], ["created_at", Mon, 27 Apr 2015 22:22:28 BRT -03:00], ["description", "Teste do Patrick."], ["mailing_id", 137], ["mailing_name", "arquivo_flash_26_03_15-19-04-2015"], ["phone", "3188637619"], ["reason_id", 27], ["updated_at", Mon, 27 Apr 2015 22:22:28 BRT -03:00], ["user_id", 60], ["user_name", "Patrick Espake"]]
(0.5ms) COMMIT
(0.4ms) BEGIN
SQL (1.0ms) UPDATE "histories" SET "file_field_id" = $1, "updated_at" = $2 WHERE "histories"."id" = 53689 [["file_field_id", 34507], ["updated_at", Mon, 27 Apr 2015 22:22:28 BRT -03:00]]
(0.6ms) COMMIT
(0.3ms) BEGIN
Company Load (0.4ms) SELECT "companies".* FROM "companies" WHERE "companies"."id" = $1 LIMIT 1 [["id", 2]]
History Load (0.5ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 ORDER BY "histories"."id" DESC LIMIT 1 [["file_field_id", 34507]]
charging 0200006377
Reason Load (0.6ms) SELECT "reasons".* FROM "reasons" WHERE "reasons"."position" = 9 LIMIT 1
History Load (11.9ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 AND (charged IS NOT TRUE) [["file_field_id", 34507]]
Reason Load (0.5ms) SELECT "reasons".* FROM "reasons" WHERE "reasons"."id" = $1 LIMIT 1 [["id", 27]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 AND (charged IS NOT TRUE) [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "reasons".* FROM "reasons" WHERE "reasons"."id" = $1 LIMIT 1 [["id", 27]]
Customer Load (0.7ms) SELECT "customers".* FROM "customers" WHERE "customers"."id" = $1 LIMIT 1 [["id", 17086]]
(1.6ms) SELECT COUNT(*) FROM "phones" WHERE "phones"."customer_id" = $1 [["customer_id", 17086]]
(12.8ms) SELECT DISTINCT COUNT(DISTINCT "histories"."phone") FROM "histories" INNER JOIN "reasons" ON "reasons"."id" = "histories"."reason_id" WHERE "histories"."file_field_id" = $1 AND (charged IS NOT TRUE AND reasons.remove_phone IS TRUE) [["file_field_id", 34507]]
CACHE (0.0ms) SELECT COUNT(*) FROM "phones" WHERE "phones"."customer_id" = $1 [["customer_id", 17086]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 AND (charged IS NOT TRUE) [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "reasons".* FROM "reasons" WHERE "reasons"."id" = $1 LIMIT 1 [["id", 27]]
Mailing Load (0.4ms) SELECT "mailings".* FROM "mailings" WHERE "mailings"."id" = $1 LIMIT 1 [["id", 137]]
CACHE (0.0ms) SELECT "histories".* FROM "histories" WHERE "histories"."file_field_id" = $1 AND (charged IS NOT TRUE) [["file_field_id", 34507]]
CACHE (0.0ms) SELECT "reasons".* FROM "reasons" WHERE "reasons"."id" = $1 LIMIT 1 [["id", 27]]
(11.1ms) SELECT COUNT(*) FROM "histories" INNER JOIN "reasons" ON "reasons"."id" = "histories"."reason_id" WHERE "histories"."file_field_id" = $1 AND "reasons"."invisible" IS NULL AND "histories"."charged" IS NULL [["file_field_id", 34507]]
SQL (0.9ms) UPDATE "file_fields" SET "contacts_count" = $1, "updated_at" = $2 WHERE "file_fields"."id" = 34507 [["contacts_count", 1], ["updated_at", Mon, 27 Apr 2015 22:22:28 BRT -03:00]]
SOLR Request (6.2ms) [ path=update parameters={} ]
(0.5ms) COMMIT
Rendered backoffice/customers/update_success.js.erb (0.2ms)
SOLR Request (33.9ms) [ path=update parameters={} ]
Completed 200 OK in 226ms (Views: 11.6ms | ActiveRecord: 90.4ms | Solr: 6.2ms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment