Skip to content

Commit

Permalink
Standardrb rules update
Browse files Browse the repository at this point in the history
standardrb was updated and the rules changed a bit. This commit only updates the effected files.
  • Loading branch information
sascha-karnatz committed Aug 25, 2023
1 parent 7f0a856 commit 0791203
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/alchemy/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def available_menu_names
#
def read_definitions_file
if ::File.exist?(definitions_file_path)
::YAML.safe_load(File.read(definitions_file_path)) || []
::YAML.safe_load_file(definitions_file_path) || []
else
raise LoadError, "Could not find menus.yml file! Please run `rails generate alchemy:install`"
end
Expand Down
4 changes: 2 additions & 2 deletions lib/alchemy/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class << self
#
# Alchemy.t(:hello)
#
def t(msg, **kwargs)
Alchemy::I18n.translate(msg, **kwargs)
def t(msg, **)
Alchemy::I18n.translate(msg, **)
end
end

Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./spec_helper"
require_relative "spec_helper"

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"
Expand Down

0 comments on commit 0791203

Please sign in to comment.