Skip to content

Commit

Permalink
remove unneeded remove_image stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Crunch09 committed Jun 11, 2015
1 parent 3d5404f commit 1953d8c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/controllers/contentr/admin/paragraphs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ def edit
def update
@paragraph = Contentr::Paragraph.unscoped.find(params[:id])
check_permission!(@paragraph)
if paragraph_params.has_key?("remove_image")
@paragraph.image_asset_wrapper_for(params[type.split('::').last.underscore.to_sym]["remove_image"]).remove_file!(@paragraph)
params[type.split('::').last.underscore.to_sym].delete("remove_image")
end
if @paragraph.update(paragraph_params)
@paragraph.reload
@paragraph = @paragraph.for_edit
Expand Down

0 comments on commit 1953d8c

Please sign in to comment.