Sha256: 6a021c6cbb000f01d19390e2479a540ec3307a19070bf66aafbbeda75222826c

Contents?: true

Size: 470 Bytes

Versions: 25

Compression:

Stored size: 470 Bytes

Contents

class Fluentd::Settings::NotesController < ApplicationController
  before_action :login_required
  before_action :find_fluentd
  before_action :find_note, only: [:update]

  def update
    @note.update!(params[:note][:content])
    redirect_to daemon_setting_path, flash: { success: t('messages.note_updating_success') }
  end

  private

  def find_note
    @note = Fluentd::SettingArchive::Note.find_by_file_id(@fluentd.agent.config_backup_dir, params[:id])
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fluentd-ui-1.2.1 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.2.0 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.1.0 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.0.1 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.0.0 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.0.0.beta.1 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.0.0.alpha.3 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.0.0.alpha.2 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-1.0.0.alpha.1 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.4.5 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.4.4 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.4.3 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.4.2 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.4.1 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.4.0 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.3.21 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.3.20 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.3.19 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.3.18 app/controllers/fluentd/settings/notes_controller.rb
fluentd-ui-0.3.17 app/controllers/fluentd/settings/notes_controller.rb