Sha256: 84b55a5573c15993eff120c2b06f9953424f2dc1192526198d00be46fc598e3c
Contents?: true
Size: 728 Bytes
Versions: 1
Compression:
Stored size: 728 Bytes
Contents
class ProjectExceptionsController < ApplicationController before_filter :find_project attr_reader :project def merge_several respond_with project.error_tracker.merge_problems(params[:problems]) end def unmerge_several respond_with project.error_tracker.unmerge_problems(params[:problems]) end def delete_several respond_with project.error_tracker.delete_problems(params[:problems]) end private def respond_with(response) if response.status == 200 flash[:notice] = response.body head :ok else render text: response.body, status: response.status end end def find_project @project = Project.find_by_slug!(params[:slug]) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
houston-core-0.5.0.beta1 | app/controllers/project_exceptions_controller.rb |