Commit 1993b39754a02d388e1c99fbe7e15fa0383e24e9
1 parent
20bfa5ce
Exists in
master
and in
1 other branch
Remove IM
Showing
3 changed files
with
1 additions
and
8 deletions
Show diff stats
config/application.rb
@@ -47,9 +47,6 @@ module Errbit | @@ -47,9 +47,6 @@ module Errbit | ||
47 | g.fixture_replacement :fabrication | 47 | g.fixture_replacement :fabrication |
48 | end | 48 | end |
49 | 49 | ||
50 | - # Enable the mongoid identity map for performance | ||
51 | - Mongoid.identity_map_enabled = true | ||
52 | - | ||
53 | # IssueTracker subclasses use inheritance, so preloading models provides querying consistency in dev mode. | 50 | # IssueTracker subclasses use inheritance, so preloading models provides querying consistency in dev mode. |
54 | config.mongoid.preload_models = true | 51 | config.mongoid.preload_models = true |
55 | 52 | ||
@@ -73,4 +70,3 @@ module Errbit | @@ -73,4 +70,3 @@ module Errbit | ||
73 | config.assets.version = '1.0' | 70 | config.assets.version = '1.0' |
74 | end | 71 | end |
75 | end | 72 | end |
76 | - |
config/initializers/mongo.rb
config/mongoid.example.yml
@@ -14,7 +14,6 @@ development: | @@ -14,7 +14,6 @@ development: | ||
14 | hosts: | 14 | hosts: |
15 | - localhost:27017 | 15 | - localhost:27017 |
16 | options: | 16 | options: |
17 | - identity_map_enabled: true | ||
18 | use_utc: true | 17 | use_utc: true |
19 | 18 | ||
20 | test: | 19 | test: |
@@ -24,7 +23,6 @@ test: | @@ -24,7 +23,6 @@ test: | ||
24 | - localhost:27017 | 23 | - localhost:27017 |
25 | database: errbit_test | 24 | database: errbit_test |
26 | options: | 25 | options: |
27 | - identity_map_enabled: true | ||
28 | use_utc: true | 26 | use_utc: true |
29 | 27 | ||
30 | # set these environment variables on your prod server | 28 | # set these environment variables on your prod server |
@@ -37,4 +35,4 @@ production: | @@ -37,4 +35,4 @@ production: | ||
37 | username: <%= ENV['MONGOID_USERNAME'] %> | 35 | username: <%= ENV['MONGOID_USERNAME'] %> |
38 | password: <%= ENV['MONGOID_PASSWORD'] %> | 36 | password: <%= ENV['MONGOID_PASSWORD'] %> |
39 | options: | 37 | options: |
40 | - identity_map_enabled: true | 38 | + use_utc: true |
41 | \ No newline at end of file | 39 | \ No newline at end of file |