Commit 5c6664ad42ab881211ca3bdda6a4c7bcf0103743
1 parent
5af29153
Exists in
master
and in
1 other branch
remove old code related to mongoid bug
looks like this mongoid bug was fixed here: https://github.com/mongoid/mongoid/commit/2bf79e273723b18b9706cf4ebeb348135af83fbe
Showing
1 changed file
with
0 additions
and
6 deletions
Show diff stats
app/controllers/errs_controller.rb
| ... | ... | @@ -78,9 +78,6 @@ class ErrsController < ApplicationController |
| 78 | 78 | end |
| 79 | 79 | |
| 80 | 80 | def resolve |
| 81 | - # Deal with bug in mongoid where find is returning an Enumberable obj | |
| 82 | - @problem = @problem.first if @problem.respond_to?(:first) | |
| 83 | - | |
| 84 | 81 | @problem.resolve! |
| 85 | 82 | flash[:success] = 'Great news everyone! The err has been resolved.' |
| 86 | 83 | redirect_to :back |
| ... | ... | @@ -133,9 +130,6 @@ class ErrsController < ApplicationController |
| 133 | 130 | |
| 134 | 131 | def find_problem |
| 135 | 132 | @problem = @app.problems.find(params[:id]) |
| 136 | - | |
| 137 | - # Deal with bug in mogoid where find is returning an Enumberable obj | |
| 138 | - @problem = @problem.first if @problem.respond_to?(:first) | |
| 139 | 133 | end |
| 140 | 134 | |
| 141 | 135 | def set_tracker_params | ... | ... |