dobtco/procure-io

View on GitHub
app/controllers/project_attachments_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class ProjectAttachmentsController < ApplicationController
  # Load
  load_resource :project
  load_resource :project_attachment, through: :project

  before_filter { |c| c.authorize! :update, @project }

  def destroy
    @project_attachment.destroy
    render_json_success
  end
end