Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

[Airbrake] [Production] undefined method `>' for nil:NilClass #249

Open
joshuavial opened this issue Mar 7, 2016 · 0 comments
Open

[Airbrake] [Production] undefined method `>' for nil:NilClass #249

joshuavial opened this issue Mar 7, 2016 · 0 comments
Labels

Comments

@joshuavial
Copy link
Member

Check full details on Airbrake: #1635843383009320073

Airbrake project: Enspiral

Backtrace:

[PROJECT_ROOT]/app/models/payment.rb:149:in amount_is_not_greater_than_allocation
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:429:in _run__262518841__validate__2077869__callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in _run_validate_callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations.rb:228:in run_validations!
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations/callbacks.rb:53:in block in run_validations!
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:403:in _run__262518841__validation__2077869__callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in _run_validation_callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations/callbacks.rb:53:in run_validations!
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations.rb:195:in valid?
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/validations.rb:69:in valid?
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/autosave_association.rb:300:in association_valid?
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/autosave_association.rb:289:in block in validate_collection_association
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/autosave_association.rb:289:in each
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/autosave_association.rb:289:in validate_collection_association
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/autosave_association.rb:217:in block in add_autosave_association_callbacks
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/autosave_association.rb:161:in instance_eval
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/autosave_association.rb:161:in block in define_non_cyclic_method
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:429:in _run__605840912__validate__2077869__callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in _run_validate_callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations.rb:228:in run_validations!
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations/callbacks.rb:53:in block in run_validations!
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:425:in _run__605840912__validation__2077869__callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in _run_validation_callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations/callbacks.rb:53:in run_validations!
[GEM_ROOT]/gems/activemodel-3.2.22/lib/active_model/validations.rb:195:in valid?
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/validations.rb:69:in valid?
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/validations.rb:77:in perform_validations
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/validations.rb:50:in save
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/attribute_methods/dirty.rb:22:in save
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:259:in block (2 levels) in save
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:313:in block in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in transaction
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:311:in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:259:in block in save
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:270:in rollback_active_record_state!
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:258:in save
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/persistence.rb:217:in block in update_attributes
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:313:in block in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in transaction
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in transaction
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/transactions.rb:311:in with_transaction_returning_status
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/persistence.rb:215:in update_attributes
[PROJECT_ROOT]/app/controllers/invoices_controller.rb:190:in update
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal/implicit_render.rb:4:in send_action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:167:in process_action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal/rendering.rb:10:in process_action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:18:in block in process_action
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:480:in _run__1012390653__process_action__566027308__callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in _run_process_action_callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:17:in process_action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal/rescue.rb:29:in process_action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:30:in block in process_action
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in block in instrument
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in instrument
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in instrument
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:29:in process_action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal/params_wrapper.rb:207:in process_action
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:18:in process_action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:121:in process
[GEM_ROOT]/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:45:in process
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal.rb:203:in dispatch
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal/rack_delegation.rb:14:in dispatch
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_controller/metal.rb:246:in block in action
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in dispatch
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:36:in call
[GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb:68:in block in call
[GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb:56:in each
[GEM_ROOT]/gems/journey-1.0.4/lib/journey/router.rb:56:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:608:in call
[GEM_ROOT]/gems/barista-1.3.0/lib/barista/server.rb:33:in call
[GEM_ROOT]/gems/warden-1.1.1/lib/warden/manager.rb:35:in block in call
[GEM_ROOT]/gems/warden-1.1.1/lib/warden/manager.rb:34:in catch
[GEM_ROOT]/gems/warden-1.1.1/lib/warden/manager.rb:34:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/best_standards_support.rb:17:in call
[GEM_ROOT]/gems/rack-1.4.7/lib/rack/etag.rb:23:in call
[GEM_ROOT]/gems/rack-1.4.7/lib/rack/conditionalget.rb:35:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/head.rb:14:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/params_parser.rb:21:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/flash.rb:242:in call
[GEM_ROOT]/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:210:in context
[GEM_ROOT]/gems/rack-1.4.7/lib/rack/session/abstract/id.rb:205:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/cookies.rb:341:in call
[GEM_ROOT]/gems/dragonfly-0.9.15/lib/dragonfly/cookie_monster.rb:9:in call
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/query_cache.rb:64:in call
[GEM_ROOT]/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:28:in block in call
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in _run__740810426__call__2077869__callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in __run_callback
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in _run_call_callbacks
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in run_callbacks
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:27:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/remote_ip.rb:31:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/debug_exceptions.rb:16:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/show_exceptions.rb:56:in call
[GEM_ROOT]/gems/railties-3.2.22/lib/rails/rack/logger.rb:32:in call_app
[GEM_ROOT]/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in block in call
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/tagged_logging.rb:22:in tagged
[GEM_ROOT]/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in call
[GEM_ROOT]/gems/actionpack-3.2.22/lib/action_dispatch/middleware/request_id.rb:22:in call
[GEM_ROOT]/gems/rack-1.4.7/lib/rack/methodoverride.rb:21:in call
[GEM_ROOT]/gems/rack-1.4.7/lib/rack/runtime.rb:17:in call
[GEM_ROOT]/gems/activesupport-3.2.22/lib/active_support/cache/strategy/local_cache.rb:72:in call
[GEM_ROOT]/gems/rack-1.4.7/lib/rack/lock.rb:15:in call
[GEM_ROOT]/gems/dragonfly-0.9.15/lib/dragonfly/middleware.rb:13:in call
[GEM_ROOT]/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:140:in forward
[GEM_ROOT]/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:147:in pass
[GEM_ROOT]/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:159:in invalidate
[GEM_ROOT]/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:74:in call!
[GEM_ROOT]/gems/rack-cache-1.5.1/lib/rack/cache/context.rb:51:in call
[GEM_ROOT]/gems/railties-3.2.22/lib/rails/engine.rb:484:in call
[GEM_ROOT]/gems/railties-3.2.22/lib/rails/application.rb:231:in call
[GEM_ROOT]/gems/railties-3.2.22/lib/rails/railtie/configurable.rb:30:in method_missing
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/rack/request_handler.rb:96:in process_request
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_request_handler.rb:516:in accept_and_process_next_request
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_request_handler.rb:274:in main_loop
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:206:in start_request_handler
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:171:in block in handle_spawn_application
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/utils.rb:470:in safe_fork
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:166:in handle_spawn_application
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:357:in server_main_loop
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:206:in start_synchronously
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:180:in start
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/rack/application_spawner.rb:129:in start
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:253:in block (2 levels) in spawn_rack_application
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server_collection.rb:132:in lookup_or_add
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:246:in block in spawn_rack_application
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server_collection.rb:82:in block in synchronize
::in 
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server_collection.rb:79:in synchronize
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:244:in spawn_rack_application
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:137:in spawn_application
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/spawn_manager.rb:275:in handle_spawn_application
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:357:in server_main_loop
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/lib/phusion_passenger/abstract_server.rb:206:in start_synchronously
/usr/local/rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18/helper-scripts/passenger-spawn-server:99:in <main>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant