Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2022-10-05 12:20:40 +0300
committerJeff King <peff@peff.net>2022-10-05 16:27:57 +0300
commita9a5c0954da26cf86ac8449c65f7cce1aa89bc7d (patch)
tree3b794fb19adb38ffa03490f9d9385c692a0a309c /app
parente29b7d8f7db62934281a6c6c059be66686453c24 (diff)
run rubocop --autocorrect --only Style/SymbolArray
I don't mind the existing spelling, but matching recommended ruby style is probably a good goal.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/books_controller.rb2
-rw-r--r--app/models/doc_file.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/books_controller.rb b/app/controllers/books_controller.rb
index cef7463d..f749c8fd 100644
--- a/app/controllers/books_controller.rb
+++ b/app/controllers/books_controller.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
class BooksController < ApplicationController
- before_action :book_resource, only: [:section, :chapter]
+ before_action :book_resource, only: %i[section chapter]
def show
lang = params[:lang] || "en"
diff --git a/app/models/doc_file.rb b/app/models/doc_file.rb
index f1e09c9a..dd0c29ba 100644
--- a/app/models/doc_file.rb
+++ b/app/models/doc_file.rb
@@ -7,7 +7,7 @@ class DocFile < ApplicationRecord
has_many :doc_versions, dependent: :delete_all
has_many :versions, through: :doc_versions
- scope :with_includes, -> { includes(doc_versions: [:doc, :version]) }
+ scope :with_includes, -> { includes(doc_versions: %i[doc version]) }
@@true_lang = {
"de" => "Deutsch",