fix the aspect stream
This commit is contained in:
parent
80a6a57992
commit
19d91908e3
2 changed files with 3 additions and 3 deletions
|
|
@ -21,10 +21,10 @@ module InterimStreamHackinessHelper
|
|||
end
|
||||
|
||||
def from_group(post)
|
||||
if params[:controller]== 'soups'
|
||||
if defined?(@stream) && params[:controller]== 'soups'
|
||||
@stream.post_from_group(post)
|
||||
else
|
||||
nil
|
||||
[]
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class Stream::Base
|
|||
end
|
||||
|
||||
def post_from_group(post)
|
||||
nil
|
||||
[]
|
||||
end
|
||||
|
||||
# @return [String]
|
||||
|
|
|
|||
Loading…
Reference in a new issue