Commit 3c1f2ef3
Changed files (1)
app
controllers
app/controllers/creations_controller.rb
@@ -25,8 +25,8 @@ class CreationsController < ApplicationController
def create
@creation = current_user.creations.create(params[:creation])
@creation.category_ids = params[:creation][:category_ids] ||= []
- @creation.delay.migrate_primary_image
if @creation.save
+ @creation.delay.migrate_primary_image
redirect_to(creations_url, :notice => 'Thank you for sharing your creation.')
else
flash[:error] = @creation.errors.full_messages