Last active
June 14, 2017 20:08
-
-
Save MartinMcDermid/58c46474865fe25f95dd65f1485e5477 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/attribute.rb:138:in `with_value_from_database' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/attribute_set.rb:39:in `write_from_user' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/attribute_methods/write.rb:74:in `write_attribute_with_type_cast' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/attribute_methods/write.rb:56:in `write_attribute' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/attribute_methods/dirty.rb:96:in `write_attribute' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/attribute_methods.rb:373:in `[]=' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/associations/association.rb:195:in `block in set_owner_attributes' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/associations/association.rb:195:in `each' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/associations/association.rb:195:in `set_owner_attributes' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/associations/has_many_association.rb:35:in `insert_record' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb:371:in `block in save_collection_association' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb:364:in `each' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb:364:in `save_collection_association' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb:184:in `block in add_autosave_association_callbacks' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb:157:in `instance_eval' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/autosave_association.rb:157:in `block in define_non_cyclic_method' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:430:in `block in make_lambda' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:226:in `block in halting_and_conditional' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:504:in `block in call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:504:in `each' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:504:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/callbacks.rb:306:in `_create_record' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/timestamp.rb:57:in `_create_record' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/persistence.rb:504:in `create_or_update' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/callbacks.rb:302:in `block in create_or_update' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/callbacks.rb:302:in `create_or_update' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/persistence.rb:120:in `save' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/validations.rb:37:in `save' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/attribute_methods/dirty.rb:21:in `save' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/transactions.rb:286:in `block (2 levels) in save' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/transactions.rb:220:in `transaction' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/transactions.rb:348:in `with_transaction_returning_status' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/transactions.rb:286:in `block in save' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/transactions.rb:301:in `rollback_active_record_state!' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/transactions.rb:285:in `save' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/active_record_helper.rb:25:in `block in save' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/transaction.rb:858:in `with_database_metric_name' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent.rb:579:in `with_database_metric_name' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/active_record_helper.rb:24:in `save' | |
app/controllers/messages_controller.rb:36:in `block in create' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/mime_responds.rb:210:in `respond_to' | |
app/controllers/messages_controller.rb:35:in `create' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/implicit_render.rb:4:in `send_action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/abstract_controller/base.rb:198:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/rendering.rb:10:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb:20:in `block in process_action' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:115:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:553:in `block (2 levels) in compile' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:496:in `block (2 levels) in around' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:311:in `block (2 levels) in halting' | |
vendor/bundle/ruby/2.3.0/gems/public_activity-1.5.0/lib/public_activity/utility/store_controller.rb:25:in `store_controller_for_public_activity' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:430:in `block in make_lambda' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:310:in `block in halting' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:495:in `block in around' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:503:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:88:in `run_callbacks' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/abstract_controller/callbacks.rb:19:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/rescue.rb:29:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `block in instrument' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/notifications.rb:164:in `instrument' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/instrumentation.rb:30:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/searchkick-2.0.2/lib/searchkick/logging.rb:155:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/abstract_controller/base.rb:137:in `process' | |
vendor/bundle/ruby/2.3.0/gems/actionview-4.2.3/lib/action_view/rendering.rb:30:in `process' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb:196:in `dispatch' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_controller/metal.rb:237:in `block in action' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:76:in `dispatch' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:45:in `serve' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:43:in `block in serve' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `each' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/journey/router.rb:30:in `serve' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/routing/route_set.rb:821:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/rack/agent_hooks.rb:30:in `traced_call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/rack/browser_monitoring.rb:32:in `traced_call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call' | |
vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch' | |
vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/etag.rb:24:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/conditionalget.rb:38:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/head.rb:13:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/params_parser.rb:27:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/flash.rb:260:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/session/abstract/id.rb:225:in `context' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/session/abstract/id.rb:220:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/cookies.rb:560:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/query_cache.rb:36:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.3/lib/active_record/migration.rb:377:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/callbacks.rb:84:in `run_callbacks' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/reloader.rb:73:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/remote_ip.rb:78:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rollbar-2.14.0/lib/rollbar/middleware/rails/rollbar.rb:24:in `block in call' | |
vendor/bundle/ruby/2.3.0/gems/rollbar-2.14.0/lib/rollbar.rb:145:in `scoped' | |
vendor/bundle/ruby/2.3.0/gems/rollbar-2.14.0/lib/rollbar/middleware/rails/rollbar.rb:22:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rollbar-2.14.0/lib/rollbar/middleware/rails/show_exceptions.rb:22:in `call_with_rollbar' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/web-console-2.1.3/lib/web_console/middleware.rb:37:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:38:in `call_app' | |
vendor/bundle/ruby/2.3.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:20:in `block in call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `block in tagged' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:26:in `tagged' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/tagged_logging.rb:68:in `tagged' | |
vendor/bundle/ruby/2.3.0/gems/railties-4.2.3/lib/rails/rack/logger.rb:20:in `call' | |
vendor/bundle/ruby/2.3.0/gems/quiet_assets-1.1.0/lib/quiet_assets.rb:27:in `call_with_quiet_assets' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/request_store-1.3.2/lib/request_store/middleware.rb:9:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/request_id.rb:21:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/methodoverride.rb:22:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/runtime.rb:18:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.3/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/lock.rb:17:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.3/lib/action_dispatch/middleware/static.rb:116:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/sendfile.rb:113:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/railties-4.2.3/lib/rails/engine.rb:518:in `call' | |
vendor/bundle/ruby/2.3.0/gems/railties-4.2.3/lib/rails/application.rb:165:in `call' | |
vendor/bundle/ruby/2.3.0/gems/newrelic_rpm-4.1.0.333/lib/new_relic/agent/instrumentation/middleware_tracing.rb:92:in `call' | |
vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/content_length.rb:15:in `call' | |
vendor/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/configuration.rb:225:in `call' | |
vendor/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:578:in `handle_request' | |
vendor/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:415:in `process_client' | |
vendor/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/server.rb:275:in `block in run' | |
vendor/bundle/ruby/2.3.0/gems/puma-3.6.2/lib/puma/thread_pool.rb:116:in `block in spawn_thread' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters: | |
{"utf8"=>"✓", | |
"authenticity_token"=>"gwHeQkwOFv+olSJdUo+sbl3rDcLQTVme/4MNU79t9+0p5BV7VflOlwSpmIXLvq+RbKcqD582bXQUWCNQWJa6Ww==", | |
"message"=>{"to"=>"7925740045", | |
"company"=>"ergergwerg werg erg erg", | |
"body"=>"test message from vehicle", | |
"vehicle_image_ids"=>["6164", | |
"6167", | |
"6171", | |
"6178", | |
"6179", | |
""]}, | |
"commit"=>"Create Message", | |
"vehicle_id"=>"1070"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Extracted source (around line #36): | |
respond_to do |format| | |
if @message.save | |
@bucket = Bucket.new | |
@bucket.message_id = @message.id | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MessagesController < ApplicationController | |
before_action :set_message, only: [:show, :edit, :update, :destroy] | |
# GET /messages | |
# GET /messages.json | |
def index | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@messages = @vehicle.messages | |
end | |
# GET /messages/1 | |
# GET /messages/1.json | |
def show | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@messages = @vehicle.messages | |
end | |
# GET /messages/new | |
def new | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@message = Message.new | |
end | |
# GET /messages/1/edit | |
def edit | |
end | |
# POST /messages | |
# POST /messages.json | |
def create | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@message = Message.new(message_params) | |
@message.vehicle_id = @vehicle.id | |
respond_to do |format| | |
if @message.save | |
@bucket = Bucket.new | |
@bucket.message_id = @message.id | |
@bucket.vehicle_id = @vehicle.id | |
@bucket.vehicle_images = params[:message][:vehicle_image_ids] | |
@bucket.save! | |
#byebug | |
format.html { redirect_to vehicle_messages_path(@vehicle), notice: 'Message was successfully created.' } | |
format.json { render :show, status: :created, location: @message } | |
else | |
format.html { render :new } | |
format.json { render json: @message.errors, status: :unprocessable_entity } | |
end | |
end | |
end | |
# PATCH/PUT /messages/1 | |
# PATCH/PUT /messages/1.json | |
def update | |
respond_to do |format| | |
if @message.update(message_params) | |
format.html { redirect_to vehicle_messages_path(@vehicle), notice: 'Message was successfully updated.' } | |
format.json { render :show, status: :ok, location: @message } | |
else | |
format.html { render :edit } | |
format.json { render json: @message.errors, status: :unprocessable_entity } | |
end | |
end | |
end | |
# DELETE /messages/1 | |
# DELETE /messages/1.json | |
def destroy | |
@message.destroy | |
respond_to do |format| | |
format.html { redirect_to vehicle_messages_path(@vehicle), notice: 'Message was successfully destroyed.' } | |
format.json { head :no_content } | |
end | |
end | |
private | |
# Use callbacks to share common setup or constraints between actions. | |
def set_message | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@message = Message.find(params[:id]) | |
end | |
# Never trust parameters from the scary internet, only allow the white list through. | |
def message_params | |
params.require(:message).permit! | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MessagesController < ApplicationController | |
before_action :set_message, only: [:show, :edit, :update, :destroy] | |
# GET /messages | |
# GET /messages.json | |
def index | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@messages = @vehicle.messages | |
end | |
# GET /messages/1 | |
# GET /messages/1.json | |
def show | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@messages = @vehicle.messages | |
end | |
# GET /messages/new | |
def new | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@message = Message.new | |
end | |
# GET /messages/1/edit | |
def edit | |
end | |
# POST /messages | |
# POST /messages.json | |
def create | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@message = Message.new(message_params) | |
@message.vehicle_id = @vehicle.id | |
respond_to do |format| | |
if @message.save | |
@bucket = Bucket.new | |
@bucket.message_id = @message.id | |
@bucket.vehicle_id = @vehicle.id | |
@bucket.vehicle_images = params[:message][:vehicle_image_ids] | |
@bucket.save! | |
#byebug | |
format.html { redirect_to vehicle_messages_path(@vehicle), notice: 'Message was successfully created.' } | |
format.json { render :show, status: :created, location: @message } | |
else | |
format.html { render :new } | |
format.json { render json: @message.errors, status: :unprocessable_entity } | |
end | |
end | |
end | |
# PATCH/PUT /messages/1 | |
# PATCH/PUT /messages/1.json | |
def update | |
respond_to do |format| | |
if @message.update(message_params) | |
format.html { redirect_to vehicle_messages_path(@vehicle), notice: 'Message was successfully updated.' } | |
format.json { render :show, status: :ok, location: @message } | |
else | |
format.html { render :edit } | |
format.json { render json: @message.errors, status: :unprocessable_entity } | |
end | |
end | |
end | |
# DELETE /messages/1 | |
# DELETE /messages/1.json | |
def destroy | |
@message.destroy | |
respond_to do |format| | |
format.html { redirect_to vehicle_messages_path(@vehicle), notice: 'Message was successfully destroyed.' } | |
format.json { head :no_content } | |
end | |
end | |
private | |
# Use callbacks to share common setup or constraints between actions. | |
def set_message | |
@vehicle = Vehicle.find(params[:vehicle_id]) | |
@message = Message.find(params[:id]) | |
end | |
# Never trust parameters from the scary internet, only allow the white list through. | |
def message_params | |
params.require(:message).permit! | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class BucketsController < ApplicationController | |
before_action :set_bucket, only: [:show, :edit, :update, :destroy] | |
# GET /buckets | |
# GET /buckets.json | |
def index | |
@buckets = Bucket.all | |
end | |
# GET /buckets/1 | |
# GET /buckets/1.json | |
def show | |
end | |
# GET /buckets/new | |
def new | |
@bucket = Bucket.new | |
end | |
# GET /buckets/1/edit | |
def edit | |
end | |
# POST /buckets | |
# POST /buckets.json | |
def create | |
@bucket = Bucket.new(bucket_params) | |
respond_to do |format| | |
if @bucket.save | |
format.html { redirect_to @bucket, notice: 'Bucket was successfully created.' } | |
format.json { render :show, status: :created, location: @bucket } | |
else | |
format.html { render :new } | |
format.json { render json: @bucket.errors, status: :unprocessable_entity } | |
end | |
end | |
end | |
# PATCH/PUT /buckets/1 | |
# PATCH/PUT /buckets/1.json | |
def update | |
respond_to do |format| | |
if @bucket.update(bucket_params) | |
format.html { redirect_to @bucket, notice: 'Bucket was successfully updated.' } | |
format.json { render :show, status: :ok, location: @bucket } | |
else | |
format.html { render :edit } | |
format.json { render json: @bucket.errors, status: :unprocessable_entity } | |
end | |
end | |
end | |
# DELETE /buckets/1 | |
# DELETE /buckets/1.json | |
def destroy | |
@bucket.destroy | |
respond_to do |format| | |
format.html { redirect_to buckets_url, notice: 'Bucket was successfully destroyed.' } | |
format.json { head :no_content } | |
end | |
end | |
private | |
# Use callbacks to share common setup or constraints between actions. | |
def set_bucket | |
@bucket = Bucket.find(params[:id]) | |
end | |
# Never trust parameters from the scary internet, only allow the white list through. | |
def bucket_params | |
params.require(:bucket).permit! | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Message < ActiveRecord::Base | |
belongs_to :vehicle | |
has_many :vehicle_images | |
accepts_nested_attributes_for :vehicle_images, allow_destroy: true | |
#after_create :send_text_message | |
def send_text_message | |
#number_to_send_to = params[:number_to_send_to] | |
number_to_send_to = self.to | |
twilio_sid = "xxx" | |
twilio_token = "xxx" | |
twilio_phone_number = "xxx" | |
@twilio_client = Twilio::REST::Client.new twilio_sid, twilio_token | |
@twilio_client.account.sms.messages.create( | |
:from => "+44#{twilio_phone_number}", | |
:to => number_to_send_to, | |
:body => self.body | |
) | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bucket < ActiveRecord::Base | |
has_many :vehicle_images | |
belongs_to :vehicle | |
accepts_nested_attributes_for :vehicle_images, allow_destroy: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment