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