Class: AirbrakeProjectSettingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/airbrake_project_settings_controller.rb

Overview

Controller for project-specific airbrake settings

Instance Method Summary collapse

Instance Method Details

#updateObject



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'app/controllers/airbrake_project_settings_controller.rb', line 8

def update
  @airbrake_project_setting.tracker_id                = params[:airbrake_project_setting][:tracker_id]
  @airbrake_project_setting.category_id               = params[:airbrake_project_setting][:category_id]
  @airbrake_project_setting.priority_id               = params[:airbrake_project_setting][:priority_id]
  @airbrake_project_setting.reopen_regexp             = params[:airbrake_project_setting][:reopen_regexp]
  @airbrake_project_setting.reopen_repeat_description = params[:airbrake_project_setting][:reopen_repeat_description]

  if @airbrake_project_setting.save
    flash[:notice] = l(:notice_successful_update)
  end

  redirect_to settings_project_path(@project, tab: 'airbrake')
end