Run options: include {:focus=>true} ======call_object_associations======== # :posts /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_181' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:407:in `_run__1027255955744686359__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__1027255955744686359__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block (2 levels) in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:4:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :entries /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_183' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:418:in `_run__1027255955744686359__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__1027255955744686359__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block (2 levels) in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:4:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :posts /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_181' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:407:in `_run__1027255955744686359__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__1027255955744686359__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block (2 levels) in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:5:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :entries /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_183' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:418:in `_run__1027255955744686359__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__1027255955744686359__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block (2 levels) in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:5:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :category /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:7:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :comments /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_187' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:407:in `_run__2175508324617683554__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__2175508324617683554__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:119:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:7:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :category /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:8:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :comments /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_187' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:407:in `_run__2175508324617683554__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__2175508324617683554__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:119:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:8:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :category /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:9:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :comments /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_187' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:407:in `_run__2175508324617683554__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__2175508324617683554__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:119:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:9:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:11:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:12:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:13:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:14:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:15:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:16:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:17:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:18:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:19:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :category /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:21:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :category /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:26:in `block in bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/many.rb:25:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:91:in `block in build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:22:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :address /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_185' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:407:in `_run__1235631247232268568__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__1235631247232268568__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block (2 levels) in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:24:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :address /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:101:in `block (4 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:100:in `block (3 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:99:in `block (2 levels) in getter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:53:in `read_attribute_for_validation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:151:in `block in validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:310:in `_callback_before_185' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:407:in `_run__1235631247232268568__validate__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validate_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `block in run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:403:in `_run__1235631247232268568__validation__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_validation_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations/callbacks.rb:53:in `run_validations!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:23:in `block in prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block (2 levels) in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:25:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :address /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/extensions/object/yoda.rb:23:in `do_or_do_not' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/in.rb:34:in `block in bind' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/in.rb:27:in `bind' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/in.rb:24:in `block in initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:38:in `init' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/in.rb:22:in `initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `new' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `create_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:26:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:139:in `block in process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:27:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :company /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:139:in `block in process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:27:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :address /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/extensions/object/yoda.rb:23:in `do_or_do_not' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/in.rb:34:in `block in bind' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/bindings/referenced/in.rb:27:in `bind' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/in.rb:24:in `block in initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:38:in `init' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/in.rb:22:in `initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `new' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `create_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:26:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:139:in `block in process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:28:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :company /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:130:in `block (2 levels) in setter' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:139:in `block in process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create' /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:28:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :teachers /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:309:in `replace' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:41:in `writer' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:51:in `block in define_writers' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:37:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :teachers /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:309:in `replace' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:41:in `writer' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:51:in `block in define_writers' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:38:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :clients /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:309:in `replace' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:41:in `writer' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:51:in `block in define_writers' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:46:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :clients /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:309:in `replace' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:41:in `writer' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:51:in `block in define_writers' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:47:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :person /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/belongs_to.rb:29:in `block in add_counter_cache_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `_run__2465000753916230221__create__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_create_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:344:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `block in create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:414:in `_run__2465000753916230221__save__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_save_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/attribute_methods/dirty.rb:22:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block (2 levels) in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:252:in `rollback_active_record_state!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/has_many_association.rb:16:in `insert_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:434:in `block (2 levels) in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:342:in `add_to_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:432:in `block in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:149:in `block in transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:148:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:431:in `create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:119:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_proxy.rb:46:in `create' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:68:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :person /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/belongs_to.rb:29:in `block in add_counter_cache_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `_run__2465000753916230221__create__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_create_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:344:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `block in create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:414:in `_run__2465000753916230221__save__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_save_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/attribute_methods/dirty.rb:22:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block (2 levels) in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:252:in `rollback_active_record_state!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/has_many_association.rb:16:in `insert_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:434:in `block (2 levels) in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:342:in `add_to_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:432:in `block in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:149:in `block in transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:148:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:431:in `create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:119:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_proxy.rb:46:in `create' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:69:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :person /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/belongs_to.rb:29:in `block in add_counter_cache_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `_run__2465000753916230221__create__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_create_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:344:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `block in create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:414:in `_run__2465000753916230221__save__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_save_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/attribute_methods/dirty.rb:22:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block (2 levels) in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:252:in `rollback_active_record_state!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/has_many_association.rb:16:in `insert_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:434:in `block (2 levels) in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:342:in `add_to_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:432:in `block in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:149:in `block in transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:148:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:431:in `create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:119:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_proxy.rb:46:in `create' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:70:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :person /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/belongs_to.rb:29:in `block in add_counter_cache_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `_run__2465000753916230221__create__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_create_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:344:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `block in create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:414:in `_run__2465000753916230221__save__3123535163420634860__callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:385:in `_run_save_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:264:in `create_or_update' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/attribute_methods/dirty.rb:22:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block (2 levels) in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:295:in `block in with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:293:in `with_transaction_returning_status' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:241:in `block in save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:252:in `rollback_active_record_state!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/has_many_association.rb:16:in `insert_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:434:in `block (2 levels) in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:342:in `add_to_target' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:432:in `block in create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:149:in `block in transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:148:in `transaction' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:431:in `create_record' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_association.rb:119:in `create' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/collection_proxy.rb:46:in `create' /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:71:in `seed_db' /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:37:in `run_in' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `block in run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `run_all' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:368:in `run_hook' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:27:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' Bullet::Detector::Association belongs_to comment => author, post => writer ======call_object_associations======== # :author /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :author /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :author /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :author /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :author /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:86:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:86:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:86:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:86:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:77:in `block (2 levels) in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:76:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:86:in `block in remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:71:in `remove_duplicate_results!' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/join_dependency.rb:57:in `instantiate' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/finder_methods.rb:212:in `find_with_associations' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:160:in `block in to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/explain.rb:25:in `logging_query_plan' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :post /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ======call_object_associations======== # :writer /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association' /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/associations/builder/association.rb:44:in `block in define_readers' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:345:in `block (4 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each' /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in ' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `instance_eval' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:80:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:173:in `with_around_hooks' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:355:in `block in run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:351:in `run_examples' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:337:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example_group.rb:338:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block (2 levels) in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `map' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:28:in `block in run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/command_line.rb:25:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run' /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:10:in `block in autorun' ============== ##:writer}}>, "Comment:2"=>#:writer}}>, "Comment:3"=>#:writer}}>, "Comment:5"=>#:writer}}>, "Comment:9"=>#:writer}}>}> ##:writer}}>}> should detect unused preload with comment => author (FAILED - 1) Failures: 1) Bullet::Detector::Association belongs_to comment => author, post => writer should detect unused preload with comment => author Failure/Error: Bullet::Detector::Association.should be_unused_preload_associations_for(Comment, :author) expected unused_preload_associations_for?(Comment(id: integer, name: string, post_id: integer, author_id: integer), :author) to return true, got false # ./spec/integration/association_spec.rb:348:in `block (3 levels) in ' Finished in 0.39417 seconds 1 example, 1 failure Failed examples: rspec ./spec/integration/association_spec.rb:343 # Bullet::Detector::Association belongs_to comment => author, post => writer should detect unused preload with comment => author