remove mongomapper error handler in photos_controller#create
This commit is contained in:
parent
ec21230756
commit
5bce2d1615
1 changed files with 0 additions and 2 deletions
|
|
@ -56,8 +56,6 @@ class PhotosController < ApplicationController
|
|||
@photo = current_user.build_post(:photo, params[:photo])
|
||||
|
||||
if @photo.save
|
||||
raise 'MongoMapper failed to catch a failed save' unless @photo.id
|
||||
|
||||
|
||||
aspects = current_user.aspects_from_ids(params[:photo][:aspect_ids])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue