fixes specs
This commit is contained in:
@@ -21,8 +21,8 @@ class SpendingProposalsController < ApplicationController
|
|||||||
@spending_proposal.author = current_user
|
@spending_proposal.author = current_user
|
||||||
|
|
||||||
if @spending_proposal.save_with_captcha
|
if @spending_proposal.save_with_captcha
|
||||||
notice = t('flash.actions.create.spending_proposal', activity: "<a href='#{user_path(current_user, filter: :spending_proposals)}'>#{t('layouts.header.my_activity_link')}</a>"), flash: { html_safe: true }
|
notice = t('flash.actions.create.spending_proposal', activity: "<a href='#{user_path(current_user, filter: :spending_proposals)}'>#{t('layouts.header.my_activity_link')}</a>")
|
||||||
redirect_to @spending_proposal, notice: notice
|
redirect_to @spending_proposal, notice: notice, flash: { html_safe: true }
|
||||||
else
|
else
|
||||||
render :new
|
render :new
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user