def edit
@client_application = @user.client_applications.find(params[:id])
+ rescue ActiveRecord::RecordNotFound
+ @type = "client application"
+ render :action => "not_found", :status => :not_found
end
def update
else
render :action => "edit"
end
+ rescue ActiveRecord::RecordNotFound
+ @type = "client application"
+ render :action => "not_found", :status => :not_found
end
def destroy
@client_application.destroy
flash[:notice] = t'oauth_clients.destroy.flash'
redirect_to :action => "index"
+ rescue ActiveRecord::RecordNotFound
+ @type = "client application"
+ render :action => "not_found", :status => :not_found
end
private
def application_params