From 5c6664ad42ab881211ca3bdda6a4c7bcf0103743 Mon Sep 17 00:00:00 2001 From: Vasiliy Ermolovich Date: Tue, 5 Jun 2012 23:31:40 +0300 Subject: [PATCH] remove old code related to mongoid bug --- app/controllers/errs_controller.rb | 6 ------ 1 file changed, 0 insertions(+), 6 deletions(-) diff --git a/app/controllers/errs_controller.rb b/app/controllers/errs_controller.rb index bcbf6c4..f844dd0 100644 --- a/app/controllers/errs_controller.rb +++ b/app/controllers/errs_controller.rb @@ -78,9 +78,6 @@ class ErrsController < ApplicationController end def resolve - # Deal with bug in mongoid where find is returning an Enumberable obj - @problem = @problem.first if @problem.respond_to?(:first) - @problem.resolve! flash[:success] = 'Great news everyone! The err has been resolved.' redirect_to :back @@ -133,9 +130,6 @@ class ErrsController < ApplicationController def find_problem @problem = @app.problems.find(params[:id]) - - # Deal with bug in mogoid where find is returning an Enumberable obj - @problem = @problem.first if @problem.respond_to?(:first) end def set_tracker_params -- libgit2 0.21.2