mirror of
https://github.com/fluent/fluentd-ui.git
synced 2026-04-04 20:01:02 +02:00
Change to use array.first(5) instead of array[0..4]
This commit is contained in:
parent
560035b185
commit
a61ba6f506
@ -6,7 +6,7 @@ class Fluentd::SettingsController < ApplicationController
|
||||
before_action :set_config, only: [:show, :edit, :update]
|
||||
|
||||
def show
|
||||
@backup_files = @fluentd.agent.backup_files_in_new_order[0..4].map do |file_path|
|
||||
@backup_files = @fluentd.agent.backup_files_in_new_order.first(5).map do |file_path|
|
||||
Fluentd::Setting::BackupFile.new(file_path)
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user