Move method 'recover_image_from_cache' from imageable controllers to image.
This commit is contained in:
@@ -26,7 +26,6 @@ class ProposalsController < ApplicationController
|
||||
|
||||
def create
|
||||
@proposal = Proposal.new(proposal_params.merge(author: current_user))
|
||||
recover_image_from_cache(@proposal)
|
||||
|
||||
if @proposal.save
|
||||
redirect_to share_proposal_path(@proposal), notice: I18n.t('flash.actions.create.proposal')
|
||||
|
||||
Reference in New Issue
Block a user