Permalink
Browse files

Fix query

  • Loading branch information...
Ricardo Panaggio
Ricardo Panaggio committed Nov 18, 2011
1 parent 812141d commit 4cf3a4fd203aaa640863c1e6b0591c0549da8b31
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/suggestion_list.rb
@@ -87,7 +87,7 @@ def remove_suggestion(suggestion_or_entry)
if suggestion_or_entry.is_a?(Suggestion)
suggestion_or_entry
else
- Suggestion.first({ :entry_id => entry_id, :entry_type => entry_type,
+ Suggestion.first({ :entry_id => suggestion_or_entry.id,
:rejected_at => nil, :accepted_at => nil,
:origin_id => nil, :user_id => self.user.id })
end

0 comments on commit 4cf3a4f

Please sign in to comment.