bullet 4.1.3 → 4.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullet (4.1.3)
4
+ bullet (4.1.4)
5
5
  uniform_notifier (~> 1.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullet (4.1.3)
4
+ bullet (4.1.4)
5
5
  uniform_notifier (~> 1.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullet (4.1.3)
4
+ bullet (4.1.4)
5
5
  uniform_notifier (~> 1.0.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bullet (4.1.3)
4
+ bullet (4.1.4)
5
5
  uniform_notifier (~> 1.0.0)
6
6
 
7
7
  GEM
data/README.textile CHANGED
@@ -1,7 +1,9 @@
1
- h1. Bullet !https://gemnasium.com/flyerhzm/bullet.png?travis(Dependency Status)!:https://gemnasium.com/flyerhzm/bullet
1
+ h1. Bullet
2
2
 
3
3
  !https://secure.travis-ci.org/flyerhzm/bullet.png!:http://travis-ci.org/flyerhzm/bullet
4
4
 
5
+ !http://api.coderwall.com/flyerhzm/endorsecount.png!:http://coderwall.com/flyerhzm
6
+
5
7
  The Bullet gem is designed to help you increase your application's performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you're using eager loading that isn't necessary and when you should use counter cache.
6
8
 
7
9
  Best practice is to use Bullet in development mode or custom mode (staging, profile, etc.). The last thing you want is your clients getting alerts about how lazy you are.
@@ -1,5 +1,9 @@
1
1
  h1. Bullet
2
2
 
3
+ !https://secure.travis-ci.org/flyerhzm/bullet.png!:http://travis-ci.org/flyerhzm/bullet
4
+
5
+ !http://api.coderwall.com/flyerhzm/endorsecount.png!:http://coderwall.com/flyerhzm
6
+
3
7
  The Bullet plugin/gem is designed to help you increase your application's performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries), when you're using eager loading that isn't necessary and when you should use counter cache.
4
8
 
5
9
  Best practice is to use Bullet in development mode or custom mode (staging, profile, etc.). The last thing you want is your clients getting alerts about how lazy you are.
@@ -11,13 +11,13 @@ module Bullet
11
11
 
12
12
  def first
13
13
  result = origin_first
14
- Bullet::Detector::Association.add_impossible_object(result)
14
+ Bullet::Detector::Association.add_impossible_object(result) if result
15
15
  result
16
16
  end
17
17
 
18
18
  def last
19
19
  result = origin_last
20
- Bullet::Detector::Association.add_impossible_object(result)
20
+ Bullet::Detector::Association.add_impossible_object(result) if result
21
21
  result
22
22
  end
23
23
 
@@ -10,13 +10,13 @@ module Bullet
10
10
 
11
11
  def first
12
12
  result = origin_first
13
- Bullet::Detector::Association.add_impossible_object(result)
13
+ Bullet::Detector::Association.add_impossible_object(result) if result
14
14
  result
15
15
  end
16
16
 
17
17
  def last
18
18
  result = origin_last
19
- Bullet::Detector::Association.add_impossible_object(result)
19
+ Bullet::Detector::Association.add_impossible_object(result) if result
20
20
  result
21
21
  end
22
22
 
@@ -1,5 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Bullet
3
- VERSION = "4.1.3"
3
+ VERSION = "4.1.4"
4
4
  end
5
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.3
4
+ version: 4.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-09 00:00:00.000000000 Z
12
+ date: 2012-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uniform_notifier
16
- requirement: &70205959610980 !ruby/object:Gem::Requirement
16
+ requirement: &70278160365200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70205959610980
24
+ version_requirements: *70278160365200
25
25
  description: A rails plugin to kill N+1 queries and unused eager loading.
26
26
  email:
27
27
  - flyerhzm@gmail.com
@@ -136,7 +136,6 @@ files:
136
136
  - spec/support/rack_double.rb
137
137
  - spec/support/sqlite_seed.rb
138
138
  - tasks/bullet_tasks.rake
139
- - test.result
140
139
  - test.sh
141
140
  homepage: http://github.com/flyerhzm/bullet
142
141
  licenses: []
@@ -152,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
152
151
  version: '0'
153
152
  segments:
154
153
  - 0
155
- hash: -629875076280408406
154
+ hash: 107640970782381372
156
155
  required_rubygems_version: !ruby/object:Gem::Requirement
157
156
  none: false
158
157
  requirements:
data/test.result DELETED
@@ -1,2293 +0,0 @@
1
- Run options: include {:focus=>true}
2
- ======call_object_associations========
3
- #<Mongoid::Category _id: 4fa743fd67df6fda41000001, _type: nil, name: "first">
4
- :posts
5
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
6
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
7
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
8
- /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'
9
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
10
- /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'
11
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
12
- /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'
13
- /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'
14
- /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'
15
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
16
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
17
- /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'
18
- /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'
19
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
20
- /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'
21
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
22
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
23
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
24
- /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!'
25
- /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'
26
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
27
- /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'
28
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
29
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
30
- /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!'
31
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
32
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
33
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
34
- /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'
35
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
36
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
37
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
38
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
39
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
40
- /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'
41
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap'
42
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
43
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
44
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
45
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:4:in `seed_db'
46
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
47
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
48
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
49
- /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'
50
- /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'
51
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
52
- /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'
53
- /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'
54
- /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'
55
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
56
- /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'
57
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
58
- /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'
59
- ======call_object_associations========
60
- #<Mongoid::Category _id: 4fa743fd67df6fda41000001, _type: nil, name: "first">
61
- :entries
62
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
63
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
64
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
65
- /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'
66
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
67
- /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'
68
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
69
- /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'
70
- /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'
71
- /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'
72
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
73
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
74
- /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'
75
- /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'
76
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
77
- /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'
78
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
79
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
80
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
81
- /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!'
82
- /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'
83
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
84
- /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'
85
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
86
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
87
- /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!'
88
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
89
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
90
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
91
- /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'
92
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
93
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
94
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
95
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
96
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
97
- /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'
98
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap'
99
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
100
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
101
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
102
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:4:in `seed_db'
103
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
104
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
105
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
106
- /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'
107
- /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'
108
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
109
- /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'
110
- /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'
111
- /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'
112
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
113
- /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'
114
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
115
- /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'
116
- ======call_object_associations========
117
- #<Mongoid::Category _id: 4fa743fd67df6fda41000002, _type: nil, name: "second">
118
- :posts
119
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
120
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
121
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
122
- /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'
123
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
124
- /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'
125
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
126
- /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'
127
- /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'
128
- /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'
129
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
130
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
131
- /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'
132
- /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'
133
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
134
- /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'
135
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
136
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
137
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
138
- /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!'
139
- /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'
140
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
141
- /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'
142
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
143
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
144
- /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!'
145
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
146
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
147
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
148
- /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'
149
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
150
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
151
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
152
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
153
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
154
- /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'
155
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap'
156
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
157
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
158
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
159
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:5:in `seed_db'
160
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
161
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
162
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
163
- /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'
164
- /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'
165
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
166
- /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'
167
- /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'
168
- /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'
169
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
170
- /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'
171
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
172
- /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'
173
- ======call_object_associations========
174
- #<Mongoid::Category _id: 4fa743fd67df6fda41000002, _type: nil, name: "second">
175
- :entries
176
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
177
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
178
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
179
- /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'
180
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
181
- /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'
182
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
183
- /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'
184
- /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'
185
- /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'
186
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
187
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
188
- /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'
189
- /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'
190
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
191
- /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'
192
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
193
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
194
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
195
- /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!'
196
- /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'
197
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
198
- /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'
199
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
200
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
201
- /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!'
202
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
203
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
204
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
205
- /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'
206
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
207
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
208
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
209
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
210
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
211
- /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'
212
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap'
213
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
214
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
215
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
216
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:5:in `seed_db'
217
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
218
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
219
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
220
- /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'
221
- /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'
222
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
223
- /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'
224
- /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'
225
- /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'
226
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
227
- /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'
228
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
229
- /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'
230
- ======call_object_associations========
231
- #<Mongoid::Post _id: 4fa743fd67df6fda41000003, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000001'), name: "first">
232
- :category
233
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
234
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
235
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
236
- /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'
237
- /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'
238
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
239
- /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'
240
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
241
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
242
- /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'
243
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
244
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
245
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
246
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:7:in `seed_db'
247
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
248
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
249
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
250
- /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'
251
- /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'
252
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
253
- /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'
254
- /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'
255
- /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'
256
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
257
- /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'
258
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
259
- /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'
260
- ======call_object_associations========
261
- #<Mongoid::Post _id: 4fa743fd67df6fda41000003, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000001'), name: "first">
262
- :comments
263
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
264
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
265
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
266
- /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'
267
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
268
- /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'
269
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
270
- /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'
271
- /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'
272
- /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'
273
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
274
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
275
- /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'
276
- /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'
277
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
278
- /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'
279
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
280
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
281
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
282
- /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!'
283
- /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'
284
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
285
- /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'
286
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
287
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
288
- /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!'
289
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
290
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
291
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
292
- /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'
293
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
294
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
295
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
296
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
297
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
298
- /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'
299
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `tap'
300
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
301
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:7:in `seed_db'
302
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
303
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
304
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
305
- /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'
306
- /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'
307
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
308
- /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'
309
- /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'
310
- /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'
311
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
312
- /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'
313
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
314
- /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'
315
- ======call_object_associations========
316
- #<Mongoid::Post _id: 4fa743fd67df6fda41000004, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000001'), name: "like first">
317
- :category
318
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
319
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
320
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
321
- /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'
322
- /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'
323
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
324
- /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'
325
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
326
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
327
- /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'
328
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
329
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
330
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
331
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:8:in `seed_db'
332
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
333
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
334
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
335
- /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'
336
- /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'
337
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
338
- /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'
339
- /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'
340
- /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'
341
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
342
- /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'
343
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
344
- /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'
345
- ======call_object_associations========
346
- #<Mongoid::Post _id: 4fa743fd67df6fda41000004, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000001'), name: "like first">
347
- :comments
348
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
349
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
350
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
351
- /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'
352
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
353
- /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'
354
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
355
- /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'
356
- /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'
357
- /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'
358
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
359
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
360
- /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'
361
- /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'
362
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
363
- /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'
364
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
365
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
366
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
367
- /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!'
368
- /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'
369
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
370
- /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'
371
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
372
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
373
- /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!'
374
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
375
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
376
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
377
- /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'
378
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
379
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
380
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
381
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
382
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
383
- /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'
384
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `tap'
385
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
386
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:8:in `seed_db'
387
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
388
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
389
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
390
- /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'
391
- /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'
392
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
393
- /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'
394
- /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'
395
- /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'
396
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
397
- /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'
398
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
399
- /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'
400
- ======call_object_associations========
401
- #<Mongoid::Post _id: 4fa743fd67df6fda41000005, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000002'), name: "second">
402
- :category
403
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
404
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
405
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
406
- /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'
407
- /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'
408
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
409
- /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'
410
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
411
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
412
- /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'
413
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
414
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
415
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
416
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:9:in `seed_db'
417
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
418
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
419
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
420
- /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'
421
- /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'
422
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
423
- /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'
424
- /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'
425
- /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'
426
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
427
- /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'
428
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
429
- /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'
430
- ======call_object_associations========
431
- #<Mongoid::Post _id: 4fa743fd67df6fda41000005, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000002'), name: "second">
432
- :comments
433
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
434
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
435
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
436
- /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'
437
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
438
- /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'
439
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
440
- /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'
441
- /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'
442
- /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'
443
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
444
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
445
- /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'
446
- /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'
447
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
448
- /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'
449
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
450
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
451
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
452
- /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!'
453
- /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'
454
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
455
- /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'
456
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
457
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
458
- /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!'
459
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
460
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
461
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
462
- /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'
463
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
464
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
465
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
466
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
467
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
468
- /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'
469
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `tap'
470
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
471
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:9:in `seed_db'
472
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
473
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
474
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
475
- /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'
476
- /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'
477
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
478
- /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'
479
- /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'
480
- /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'
481
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
482
- /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'
483
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
484
- /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'
485
- ======call_object_associations========
486
- #<Mongoid::Comment _id: 4fa743fd67df6fda41000006, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000003'), name: "first">
487
- :post
488
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
489
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
490
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
491
- /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'
492
- /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'
493
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
494
- /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'
495
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
496
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
497
- /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'
498
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
499
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
500
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
501
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:11:in `seed_db'
502
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
503
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
504
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
505
- /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'
506
- /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'
507
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
508
- /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'
509
- /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'
510
- /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'
511
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
512
- /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'
513
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
514
- /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'
515
- ======call_object_associations========
516
- #<Mongoid::Comment _id: 4fa743fd67df6fda41000007, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000003'), name: "first2">
517
- :post
518
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
519
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
520
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
521
- /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'
522
- /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'
523
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
524
- /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'
525
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
526
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
527
- /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'
528
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
529
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
530
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
531
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:12:in `seed_db'
532
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
533
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
534
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
535
- /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'
536
- /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'
537
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
538
- /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'
539
- /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'
540
- /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'
541
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
542
- /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'
543
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
544
- /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'
545
- ======call_object_associations========
546
- #<Mongoid::Comment _id: 4fa743fd67df6fda41000008, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000003'), name: "first3">
547
- :post
548
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
549
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
550
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
551
- /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'
552
- /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'
553
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
554
- /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'
555
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
556
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
557
- /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'
558
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
559
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
560
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
561
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:13:in `seed_db'
562
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
563
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
564
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
565
- /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'
566
- /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'
567
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
568
- /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'
569
- /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'
570
- /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'
571
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
572
- /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'
573
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
574
- /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'
575
- ======call_object_associations========
576
- #<Mongoid::Comment _id: 4fa743fd67df6fda41000009, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000003'), name: "second">
577
- :post
578
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
579
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
580
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
581
- /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'
582
- /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'
583
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
584
- /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'
585
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
586
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
587
- /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'
588
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
589
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
590
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
591
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:14:in `seed_db'
592
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
593
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
594
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
595
- /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'
596
- /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'
597
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
598
- /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'
599
- /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'
600
- /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'
601
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
602
- /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'
603
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
604
- /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'
605
- ======call_object_associations========
606
- #<Mongoid::Comment _id: 4fa743fd67df6fda4100000a, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000004'), name: "like first 1">
607
- :post
608
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
609
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
610
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
611
- /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'
612
- /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'
613
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
614
- /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'
615
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
616
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
617
- /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'
618
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
619
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
620
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
621
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:15:in `seed_db'
622
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
623
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
624
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
625
- /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'
626
- /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'
627
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
628
- /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'
629
- /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'
630
- /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'
631
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
632
- /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'
633
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
634
- /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'
635
- ======call_object_associations========
636
- #<Mongoid::Comment _id: 4fa743fd67df6fda4100000b, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000004'), name: "like first 2">
637
- :post
638
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
639
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
640
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
641
- /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'
642
- /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'
643
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
644
- /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'
645
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
646
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
647
- /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'
648
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
649
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
650
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
651
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:16:in `seed_db'
652
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
653
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
654
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
655
- /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'
656
- /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'
657
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
658
- /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'
659
- /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'
660
- /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'
661
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
662
- /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'
663
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
664
- /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'
665
- ======call_object_associations========
666
- #<Mongoid::Comment _id: 4fa743fd67df6fda4100000c, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000005'), name: "third">
667
- :post
668
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
669
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
670
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
671
- /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'
672
- /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'
673
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
674
- /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'
675
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
676
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
677
- /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'
678
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
679
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
680
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
681
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:17:in `seed_db'
682
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
683
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
684
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
685
- /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'
686
- /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'
687
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
688
- /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'
689
- /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'
690
- /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'
691
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
692
- /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'
693
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
694
- /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'
695
- ======call_object_associations========
696
- #<Mongoid::Comment _id: 4fa743fd67df6fda4100000d, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000005'), name: "fourth">
697
- :post
698
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
699
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
700
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
701
- /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'
702
- /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'
703
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
704
- /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'
705
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
706
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
707
- /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'
708
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
709
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
710
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
711
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:18:in `seed_db'
712
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
713
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
714
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
715
- /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'
716
- /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'
717
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
718
- /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'
719
- /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'
720
- /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'
721
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
722
- /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'
723
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
724
- /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'
725
- ======call_object_associations========
726
- #<Mongoid::Comment _id: 4fa743fd67df6fda4100000e, _type: nil, post_id: BSON::ObjectId('4fa743fd67df6fda41000005'), name: "fourth">
727
- :post
728
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
729
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
730
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
731
- /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'
732
- /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'
733
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
734
- /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'
735
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
736
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
737
- /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'
738
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
739
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
740
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
741
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:19:in `seed_db'
742
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
743
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
744
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
745
- /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'
746
- /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'
747
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
748
- /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'
749
- /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'
750
- /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'
751
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
752
- /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'
753
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
754
- /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'
755
- ======call_object_associations========
756
- #<Mongoid::Entry _id: 4fa743fd67df6fda4100000f, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000001'), name: "first">
757
- :category
758
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
759
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
760
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
761
- /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'
762
- /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'
763
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
764
- /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'
765
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
766
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
767
- /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'
768
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
769
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
770
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
771
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:21:in `seed_db'
772
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
773
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
774
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
775
- /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'
776
- /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'
777
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
778
- /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'
779
- /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'
780
- /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'
781
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
782
- /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'
783
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
784
- /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'
785
- ======call_object_associations========
786
- #<Mongoid::Entry _id: 4fa743fd67df6fda41000010, _type: nil, category_id: BSON::ObjectId('4fa743fd67df6fda41000001'), name: "second">
787
- :category
788
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
789
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
790
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
791
- /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'
792
- /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'
793
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
794
- /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'
795
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
796
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:365:in `append'
797
- /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'
798
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `tap'
799
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:90:in `build'
800
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/many.rb:118:in `create'
801
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:22:in `seed_db'
802
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
803
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
804
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
805
- /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'
806
- /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'
807
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
808
- /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'
809
- /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'
810
- /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'
811
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
812
- /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'
813
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
814
- /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'
815
- ======call_object_associations========
816
- #<Mongoid::Company _id: 4fa743fd67df6fda41000011, _type: nil, name: "first">
817
- :address
818
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
819
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
820
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
821
- /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'
822
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
823
- /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'
824
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
825
- /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'
826
- /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'
827
- /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'
828
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
829
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
830
- /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'
831
- /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'
832
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
833
- /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'
834
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
835
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
836
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
837
- /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!'
838
- /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'
839
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
840
- /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'
841
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
842
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
843
- /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!'
844
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
845
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
846
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
847
- /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'
848
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
849
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
850
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
851
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
852
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
853
- /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'
854
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap'
855
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
856
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
857
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
858
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:24:in `seed_db'
859
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
860
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
861
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
862
- /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'
863
- /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'
864
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
865
- /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'
866
- /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'
867
- /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'
868
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
869
- /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'
870
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
871
- /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'
872
- ======call_object_associations========
873
- #<Mongoid::Company _id: 4fa743fd67df6fda41000012, _type: nil, name: "second">
874
- :address
875
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
876
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
877
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
878
- /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'
879
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:125:in `_loading'
880
- /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'
881
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
882
- /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'
883
- /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'
884
- /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'
885
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `each'
886
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validator.rb:150:in `validate'
887
- /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'
888
- /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'
889
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
890
- /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'
891
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
892
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
893
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:212:in `run_validations!'
894
- /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!'
895
- /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'
896
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
897
- /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'
898
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
899
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/callbacks.rb:43:in `run_callbacks'
900
- /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!'
901
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:179:in `valid?'
902
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/validations.rb:77:in `valid?'
903
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activemodel-3.2.2/lib/active_model/validations.rb:187:in `invalid?'
904
- /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'
905
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `tap'
906
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/insertion.rb:22:in `prepare'
907
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence/operations/insert.rb:26:in `persist'
908
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:49:in `insert'
909
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:154:in `upsert'
910
- /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'
911
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `tap'
912
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
913
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
914
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
915
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:25:in `seed_db'
916
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
917
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
918
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
919
- /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'
920
- /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'
921
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
922
- /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'
923
- /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'
924
- /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'
925
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
926
- /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'
927
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
928
- /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'
929
- ======call_object_associations========
930
- #<Mongoid::Company _id: 4fa743fd67df6fda41000011, _type: nil, name: "first">
931
- :address
932
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
933
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
934
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
935
- /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'
936
- /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'
937
- /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'
938
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
939
- /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'
940
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
941
- /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'
942
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:38:in `init'
943
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/in.rb:22:in `initialize'
944
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `new'
945
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `create_relation'
946
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:26:in `build'
947
- /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'
948
- /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'
949
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair'
950
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations'
951
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending'
952
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process'
953
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize'
954
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
955
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize'
956
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new'
957
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
958
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
959
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
960
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:27:in `seed_db'
961
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
962
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
963
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
964
- /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'
965
- /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'
966
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
967
- /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'
968
- /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'
969
- /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'
970
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
971
- /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'
972
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
973
- /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'
974
- ======call_object_associations========
975
- #<Mongoid::Address _id: 4fa743fd67df6fda41000013, _type: nil, company_id: BSON::ObjectId('4fa743fd67df6fda41000011'), name: "first">
976
- :company
977
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
978
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
979
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
980
- /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'
981
- /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'
982
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair'
983
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations'
984
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending'
985
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process'
986
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize'
987
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
988
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize'
989
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new'
990
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
991
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
992
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
993
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:27:in `seed_db'
994
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
995
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
996
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
997
- /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'
998
- /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'
999
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1000
- /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'
1001
- /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'
1002
- /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'
1003
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1004
- /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'
1005
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1006
- /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'
1007
- ======call_object_associations========
1008
- #<Mongoid::Company _id: 4fa743fd67df6fda41000012, _type: nil, name: "second">
1009
- :address
1010
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1011
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
1012
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
1013
- /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'
1014
- /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'
1015
- /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'
1016
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:55:in `_binding'
1017
- /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'
1018
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:22:in `bind_one'
1019
- /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'
1020
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/proxy.rb:38:in `init'
1021
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/referenced/in.rb:22:in `initialize'
1022
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `new'
1023
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:44:in `create_relation'
1024
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:26:in `build'
1025
- /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'
1026
- /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'
1027
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair'
1028
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations'
1029
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending'
1030
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process'
1031
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize'
1032
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
1033
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize'
1034
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new'
1035
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
1036
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
1037
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
1038
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:28:in `seed_db'
1039
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
1040
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1041
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1042
- /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'
1043
- /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'
1044
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1045
- /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'
1046
- /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'
1047
- /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'
1048
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1049
- /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'
1050
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1051
- /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'
1052
- ======call_object_associations========
1053
- #<Mongoid::Address _id: 4fa743fd67df6fda41000014, _type: nil, company_id: BSON::ObjectId('4fa743fd67df6fda41000012'), name: "second">
1054
- :company
1055
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1056
- /Users/flyerhzm/Sites/bullet/lib/bullet/mongoid.rb:37:in `set_relation'
1057
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/relations/accessors.rb:27:in `build'
1058
- /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'
1059
- /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'
1060
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `each_pair'
1061
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:134:in `process_relations'
1062
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:122:in `process_pending'
1063
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/attributes/processing.rb:29:in `process'
1064
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:136:in `block in initialize'
1065
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:84:in `_building'
1066
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/document.rb:130:in `initialize'
1067
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `new'
1068
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:177:in `block in create'
1069
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/threaded/lifecycle.rb:173:in `_creating'
1070
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/mongoid-2.4.9/lib/mongoid/persistence.rb:176:in `create'
1071
- /Users/flyerhzm/Sites/bullet/spec/support/mongo_seed.rb:28:in `seed_db'
1072
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:36:in `block (2 levels) in <top (required)>'
1073
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1074
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1075
- /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'
1076
- /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'
1077
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1078
- /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'
1079
- /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'
1080
- /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'
1081
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1082
- /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'
1083
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1084
- /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'
1085
- ======call_object_associations========
1086
- #<Student id: 1, name: "first">
1087
- :teachers
1088
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1089
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target'
1090
- /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'
1091
- /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'
1092
- /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'
1093
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:37:in `seed_db'
1094
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1095
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1096
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1097
- /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'
1098
- /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'
1099
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1100
- /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'
1101
- /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'
1102
- /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'
1103
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1104
- /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'
1105
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1106
- /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'
1107
- ======call_object_associations========
1108
- #<Student id: 2, name: "second">
1109
- :teachers
1110
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1111
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target'
1112
- /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'
1113
- /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'
1114
- /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'
1115
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:38:in `seed_db'
1116
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1117
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1118
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1119
- /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'
1120
- /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'
1121
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1122
- /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'
1123
- /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'
1124
- /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'
1125
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1126
- /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'
1127
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1128
- /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'
1129
- ======call_object_associations========
1130
- #<Firm id: 1, name: "first">
1131
- :clients
1132
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1133
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target'
1134
- /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'
1135
- /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'
1136
- /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'
1137
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:46:in `seed_db'
1138
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1139
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1140
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1141
- /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'
1142
- /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'
1143
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1144
- /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'
1145
- /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'
1146
- /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'
1147
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1148
- /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'
1149
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1150
- /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'
1151
- ======call_object_associations========
1152
- #<Firm id: 2, name: "second">
1153
- :clients
1154
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1155
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:67:in `load_target'
1156
- /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'
1157
- /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'
1158
- /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'
1159
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:47:in `seed_db'
1160
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1161
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1162
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1163
- /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'
1164
- /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'
1165
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1166
- /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'
1167
- /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'
1168
- /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'
1169
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1170
- /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'
1171
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1172
- /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'
1173
- ======call_object_associations========
1174
- #<Pet id: 1, name: "first", person_id: 1>
1175
- :person
1176
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1177
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1178
- /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'
1179
- /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'
1180
- /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'
1181
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1182
- /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'
1183
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1184
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create'
1185
- /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'
1186
- /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'
1187
- /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'
1188
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1189
- /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'
1190
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1191
- /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'
1192
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save'
1193
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save'
1194
- /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'
1195
- /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'
1196
- /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'
1197
- /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'
1198
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1199
- /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'
1200
- /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'
1201
- /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!'
1202
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save'
1203
- /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'
1204
- /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'
1205
- /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'
1206
- /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'
1207
- /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'
1208
- /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'
1209
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1210
- /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'
1211
- /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'
1212
- /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'
1213
- /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'
1214
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:68:in `seed_db'
1215
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1216
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1217
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1218
- /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'
1219
- /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'
1220
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1221
- /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'
1222
- /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'
1223
- /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'
1224
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1225
- /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'
1226
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1227
- /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'
1228
- ======call_object_associations========
1229
- #<Pet id: 2, name: "second", person_id: 1>
1230
- :person
1231
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1232
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1233
- /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'
1234
- /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'
1235
- /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'
1236
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1237
- /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'
1238
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1239
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create'
1240
- /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'
1241
- /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'
1242
- /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'
1243
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1244
- /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'
1245
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1246
- /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'
1247
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save'
1248
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save'
1249
- /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'
1250
- /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'
1251
- /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'
1252
- /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'
1253
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1254
- /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'
1255
- /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'
1256
- /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!'
1257
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save'
1258
- /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'
1259
- /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'
1260
- /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'
1261
- /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'
1262
- /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'
1263
- /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'
1264
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1265
- /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'
1266
- /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'
1267
- /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'
1268
- /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'
1269
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:69:in `seed_db'
1270
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1271
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1272
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1273
- /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'
1274
- /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'
1275
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1276
- /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'
1277
- /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'
1278
- /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'
1279
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1280
- /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'
1281
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1282
- /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'
1283
- ======call_object_associations========
1284
- #<Pet id: 3, name: "third", person_id: 2>
1285
- :person
1286
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1287
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1288
- /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'
1289
- /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'
1290
- /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'
1291
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1292
- /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'
1293
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1294
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create'
1295
- /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'
1296
- /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'
1297
- /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'
1298
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1299
- /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'
1300
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1301
- /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'
1302
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save'
1303
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save'
1304
- /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'
1305
- /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'
1306
- /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'
1307
- /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'
1308
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1309
- /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'
1310
- /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'
1311
- /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!'
1312
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save'
1313
- /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'
1314
- /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'
1315
- /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'
1316
- /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'
1317
- /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'
1318
- /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'
1319
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1320
- /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'
1321
- /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'
1322
- /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'
1323
- /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'
1324
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:70:in `seed_db'
1325
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1326
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1327
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1328
- /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'
1329
- /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'
1330
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1331
- /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'
1332
- /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'
1333
- /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'
1334
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1335
- /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'
1336
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1337
- /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'
1338
- ======call_object_associations========
1339
- #<Pet id: 4, name: "fourth", person_id: 2>
1340
- :person
1341
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1342
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1343
- /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'
1344
- /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'
1345
- /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'
1346
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1347
- /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'
1348
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1349
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/callbacks.rb:268:in `create'
1350
- /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'
1351
- /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'
1352
- /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'
1353
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:405:in `__run_callback'
1354
- /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'
1355
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
1356
- /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'
1357
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/persistence.rb:84:in `save'
1358
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/validations.rb:50:in `save'
1359
- /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'
1360
- /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'
1361
- /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'
1362
- /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'
1363
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1364
- /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'
1365
- /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'
1366
- /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!'
1367
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:240:in `save'
1368
- /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'
1369
- /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'
1370
- /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'
1371
- /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'
1372
- /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'
1373
- /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'
1374
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/transactions.rb:208:in `transaction'
1375
- /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'
1376
- /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'
1377
- /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'
1378
- /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'
1379
- /Users/flyerhzm/Sites/bullet/spec/support/sqlite_seed.rb:71:in `seed_db'
1380
- /Users/flyerhzm/Sites/bullet/spec/spec_helper.rb:37:in `block (2 levels) in <top (required)>'
1381
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1382
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:24:in `call'
1383
- /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'
1384
- /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'
1385
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/hooks.rb:70:in `each'
1386
- /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'
1387
- /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'
1388
- /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'
1389
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1390
- /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'
1391
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1392
- /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'
1393
-
1394
- Bullet::Detector::Association belongs_to
1395
- comment => author, post => writer
1396
- ======call_object_associations========
1397
- #<Comment id: 1, name: "first", post_id: 1, author_id: 1>
1398
- :author
1399
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1400
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1401
- /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'
1402
- /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!'
1403
- /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'
1404
- /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!'
1405
- /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'
1406
- /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!'
1407
- /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'
1408
- /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'
1409
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1410
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1411
- /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'
1412
- /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'
1413
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1414
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1415
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1416
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1417
- /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'
1418
- /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'
1419
- /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'
1420
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1421
- /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'
1422
- /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'
1423
- /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'
1424
- /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'
1425
- /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'
1426
- /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'
1427
- /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'
1428
- /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'
1429
- /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'
1430
- /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'
1431
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1432
- /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'
1433
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1434
- /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'
1435
- ======call_object_associations========
1436
- #<Comment id: 2, name: "first2", post_id: 1, author_id: 1>
1437
- :author
1438
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1439
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1440
- /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'
1441
- /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!'
1442
- /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'
1443
- /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!'
1444
- /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'
1445
- /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!'
1446
- /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'
1447
- /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'
1448
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1449
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1450
- /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'
1451
- /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'
1452
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1453
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1454
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1455
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1456
- /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'
1457
- /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'
1458
- /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'
1459
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1460
- /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'
1461
- /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'
1462
- /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'
1463
- /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'
1464
- /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'
1465
- /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'
1466
- /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'
1467
- /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'
1468
- /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'
1469
- /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'
1470
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1471
- /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'
1472
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1473
- /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'
1474
- ======call_object_associations========
1475
- #<Comment id: 3, name: "first3", post_id: 1, author_id: 1>
1476
- :author
1477
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1478
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1479
- /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'
1480
- /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!'
1481
- /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'
1482
- /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!'
1483
- /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'
1484
- /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!'
1485
- /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'
1486
- /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'
1487
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1488
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1489
- /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'
1490
- /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'
1491
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1492
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1493
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1494
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1495
- /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'
1496
- /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'
1497
- /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'
1498
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1499
- /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'
1500
- /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'
1501
- /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'
1502
- /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'
1503
- /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'
1504
- /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'
1505
- /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'
1506
- /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'
1507
- /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'
1508
- /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'
1509
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1510
- /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'
1511
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1512
- /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'
1513
- ======call_object_associations========
1514
- #<Comment id: 5, name: "like first 1", post_id: 2, author_id: 1>
1515
- :author
1516
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1517
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1518
- /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'
1519
- /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!'
1520
- /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'
1521
- /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!'
1522
- /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'
1523
- /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!'
1524
- /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'
1525
- /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'
1526
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1527
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1528
- /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'
1529
- /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'
1530
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1531
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1532
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1533
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1534
- /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'
1535
- /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'
1536
- /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'
1537
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1538
- /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'
1539
- /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'
1540
- /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'
1541
- /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'
1542
- /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'
1543
- /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'
1544
- /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'
1545
- /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'
1546
- /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'
1547
- /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'
1548
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1549
- /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'
1550
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1551
- /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'
1552
- ======call_object_associations========
1553
- #<Comment id: 9, name: "fourth", post_id: 3, author_id: 1>
1554
- :author
1555
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1556
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1557
- /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'
1558
- /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!'
1559
- /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'
1560
- /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!'
1561
- /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'
1562
- /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!'
1563
- /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'
1564
- /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'
1565
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1566
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1567
- /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'
1568
- /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'
1569
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1570
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1571
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1572
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1573
- /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'
1574
- /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'
1575
- /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'
1576
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1577
- /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'
1578
- /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'
1579
- /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'
1580
- /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'
1581
- /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'
1582
- /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'
1583
- /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'
1584
- /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'
1585
- /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'
1586
- /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'
1587
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1588
- /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'
1589
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1590
- /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'
1591
- ======call_object_associations========
1592
- #<Comment id: 1, name: "first", post_id: 1, author_id: 1>
1593
- :post
1594
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1595
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1596
- /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'
1597
- /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!'
1598
- /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'
1599
- /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!'
1600
- /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'
1601
- /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!'
1602
- /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'
1603
- /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'
1604
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1605
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1606
- /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'
1607
- /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'
1608
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1609
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1610
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1611
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1612
- /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'
1613
- /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'
1614
- /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'
1615
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1616
- /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'
1617
- /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'
1618
- /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'
1619
- /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'
1620
- /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'
1621
- /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'
1622
- /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'
1623
- /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'
1624
- /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'
1625
- /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'
1626
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1627
- /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'
1628
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1629
- /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'
1630
- ======call_object_associations========
1631
- #<Comment id: 2, name: "first2", post_id: 1, author_id: 1>
1632
- :post
1633
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1634
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1635
- /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'
1636
- /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!'
1637
- /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'
1638
- /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!'
1639
- /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'
1640
- /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!'
1641
- /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'
1642
- /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'
1643
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1644
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1645
- /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'
1646
- /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'
1647
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1648
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1649
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1650
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1651
- /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'
1652
- /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'
1653
- /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'
1654
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1655
- /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'
1656
- /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'
1657
- /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'
1658
- /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'
1659
- /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'
1660
- /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'
1661
- /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'
1662
- /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'
1663
- /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'
1664
- /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'
1665
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1666
- /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'
1667
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1668
- /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'
1669
- ======call_object_associations========
1670
- #<Comment id: 3, name: "first3", post_id: 1, author_id: 1>
1671
- :post
1672
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1673
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1674
- /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'
1675
- /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!'
1676
- /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'
1677
- /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!'
1678
- /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'
1679
- /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!'
1680
- /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'
1681
- /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'
1682
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1683
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1684
- /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'
1685
- /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'
1686
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1687
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1688
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1689
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1690
- /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'
1691
- /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'
1692
- /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'
1693
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1694
- /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'
1695
- /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'
1696
- /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'
1697
- /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'
1698
- /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'
1699
- /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'
1700
- /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'
1701
- /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'
1702
- /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'
1703
- /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'
1704
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/reporter.rb:34:in `report'
1705
- /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'
1706
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/runner.rb:69:in `run'
1707
- /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'
1708
- ======call_object_associations========
1709
- #<Comment id: 5, name: "like first 1", post_id: 2, author_id: 1>
1710
- :post
1711
- /Users/flyerhzm/Sites/bullet/lib/bullet/detector/n_plus_one_query.rb:11:in `call_association'
1712
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:77:in `reader'
1713
- /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'
1714
- /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!'
1715
- /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'
1716
- /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!'
1717
- /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'
1718
- /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!'
1719
- /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'
1720
- /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'
1721
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:41:in `find_with_associations'
1722
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:171:in `exec_queries'
1723
- /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'
1724
- /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'
1725
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation.rb:159:in `to_a'
1726
- /Users/flyerhzm/Sites/bullet/lib/bullet/active_record31.rb:10:in `to_a'
1727
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/activerecord-3.2.2/lib/active_record/relation/delegation.rb:6:in `each'
1728
- /Users/flyerhzm/Sites/bullet/spec/integration/association_spec.rb:344:in `block (3 levels) in <top (required)>'
1729
- /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'
1730
- /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'
1731
- /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'
1732
- /Users/flyerhzm/.rvm/gems/ruby-1.9.3-p125@bullet/gems/rspec-core-2.9.0/lib/rspec/core/example.rb:77:in `run'
1733
- /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'
1734
- /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'
1735
- /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'
1736
- /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'
1737
- /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'
1738
-