do something a little smarter to fix the string or int problem from last night

This commit is contained in:
Maxwell Salzberg 2011-10-24 12:00:39 -07:00
parent eea6a59d40
commit 083f788359

View file

@ -49,7 +49,7 @@ class Stream::Multi < Stream::Base
# @return [Symbol] # @return [Symbol]
def is_in?(sym, post) 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 "#{sym.to_s}_stream".to_sym
end end
end end