do something a little smarter to fix the string or int problem from last night
This commit is contained in:
parent
eea6a59d40
commit
083f788359
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue