Module: InterimStreamHackinessHelper

Defined in:
app/helpers/interim_stream_hackiness_helper.rb

Instance Method Summary collapse

Instance Method Details

#from_group(post) ⇒ Object



15
16
17
18
19
20
21
# File 'app/helpers/interim_stream_hackiness_helper.rb', line 15

def from_group(post)
  if defined?(@stream) && params[:controller] == 'multis'
    @stream.post_from_group(post)
  else
   []
  end
end

#publisher_formatted_textObject

These methods need to go away once we pass publisher object into the partial ######



5
6
7
8
9
10
11
12
13
# File 'app/helpers/interim_stream_hackiness_helper.rb', line 5

def publisher_formatted_text
  if params[:prefill].present?
    params[:prefill]
  elsif defined?(@stream)
    @stream.publisher.prefill
  else
    nil
  end
end