app/helpers/campaigns_helper.rb
def campaign_summary(campaign)
    status  = render file: "campaigns/_status.html.haml",  locals: { campaign: campaign }
    metrics = render file: "campaigns/_metrics.html.haml", locals: { campaign: campaign }
    "#{t(campaign.status)}, " + [status, metrics].map { |str| strip_tags(str) }.join(' ').delete("\n")
  end
# Quick campaign summary for RSS/ATOM feeds.
#----------------------------------------------------------------------------
Quick campaign summary for RSS/ATOM feeds.
Quick campaign summary for RSS / ATOM feeds .
def campaign_summary(campaign)
    status  = render file: "campaigns/_status.html.haml",  locals: { campaign: campaign }
    metrics = render file: "campaigns/_metrics.html.haml", locals: { campaign: campaign }
    "#{t(campaign.status)}, " + [status, metrics].map { |str| strip_tags(str) }.join(' ').delete("\n")
  end
def campaign_summary ( campaign ) status = render file : "campaigns/_status.html.haml" , locals : { campaign : campaign } metrics = render file : "campaigns/_metrics.html.haml" , locals : { campaign : campaign } "#{t(campaign.status)}, " + [ status , metrics ] . map { | str | strip_tags ( str ) } . join ( ' ' ) . delete ( "\n" ) end
Quick campaign summary for RSS/ATOM feeds.
Quick campaign summary for RSS / ATOM feeds .
campaign