Skip to content

Commit

Permalink
chore: support from ruby 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Jun 10, 2024
1 parent bb6a012 commit 46bc64d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 3.3.0
TargetRubyVersion: 3.1

# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
Expand Down
4 changes: 2 additions & 2 deletions lib/kiqr/framework.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ module Framework
private

# Set a flash message with a translation key
def kiqr_flash_message(type, message, **)
flash[type] = I18n.t("kiqr.flash_messages.#{message}", **)
def kiqr_flash_message(type, message, args)
flash[type] = I18n.t("kiqr.flash_messages.#{message}", args)
end

# Automatically include account_id in all URL options if it is already present in the params.
Expand Down
4 changes: 2 additions & 2 deletions test/dummy/bin/setup
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ require "fileutils"
# path to your application root.
APP_ROOT = File.expand_path("..", __dir__)

def system!(*)
system(*, exception: true)
def system!(command)
system(command, exception: true)
end

FileUtils.chdir APP_ROOT do
Expand Down

0 comments on commit 46bc64d

Please sign in to comment.