Sha256: 1e531a08c00b3488a6c2ae66890fd4e1ce65dd84018b2ee481d2171fba8a0eec
Contents?: true
Size: 421 Bytes
Versions: 13
Compression:
Stored size: 421 Bytes
Contents
class AutoError::AppErrorsController < AutoError::ApplicationController before_filter :ensure_authenticated def index @errors = AutoError::AppError.unresolved render json: @errors.map { |ae| AutoError::AppErrorDecorator.new(ae).as_json( @h ) } end def destroy @error = AutoError::AppError.find( params[:id] ) @error.resolved_at = Time.now @error.save render json: { ok: true } end end
Version data entries
13 entries across 13 versions & 1 rubygems