Commit e59f511059b158693289d9dddb14e4d770c8562e
1 parent
cb3e1bb0
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
3 deletions
Show diff stats
app/controllers/comments_controller.rb
@@ -35,9 +35,6 @@ class CommentsController < ApplicationController | @@ -35,9 +35,6 @@ class CommentsController < ApplicationController | ||
35 | 35 | ||
36 | def find_problem | 36 | def find_problem |
37 | @problem = @app.problems.find(params[:err_id]) | 37 | @problem = @app.problems.find(params[:err_id]) |
38 | - | ||
39 | - # Deal with bug in mogoid where find is returning an Enumberable obj | ||
40 | - @problem = @problem.first if @problem.respond_to?(:first) | ||
41 | end | 38 | end |
42 | end | 39 | end |
43 | 40 |