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

Version Path
auto_error-0.0.18 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.16 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.15 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.14 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.13 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.12 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.10 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.9 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.8 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.7 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.6 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.5 app/controllers/auto_error/app_errors_controller.rb
auto_error-0.0.4 app/controllers/auto_error/app_errors_controller.rb