From 083f78835980b3f10bc30d96baada1aa77b2b685 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Mon, 24 Oct 2011 12:00:39 -0700 Subject: [PATCH] do something a little smarter to fix the string or int problem from last night --- lib/stream/multi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/stream/multi.rb b/lib/stream/multi.rb index c1ecd599d..febea81a0 100644 --- a/lib/stream/multi.rb +++ b/lib/stream/multi.rb @@ -49,7 +49,7 @@ class Stream::Multi < Stream::Base # @return [Symbol] def is_in?(sym, post) - if self.send("#{sym.to_s}_post_ids").find{|x| x.to_s == post.id.to_s} + if self.send("#{sym.to_s}_post_ids").find{|x| (x == post.id) || (x.to_s == post.id.to_s)} "#{sym.to_s}_stream".to_sym end end