Move method 'recover_image_from_cache' from imageable controllers to image.

This commit is contained in:
Senén Rodero Rodríguez
2017-09-23 23:09:31 +02:00
parent c22637c349
commit 0a86727c6a
8 changed files with 8 additions and 14 deletions

View File

@@ -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')