From a099b4101ad241708e7bfa58679fa409f496774f Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Wed, 16 Jul 2025 19:13:39 -0400 Subject: [PATCH] dep: bump to ruby 3.4.5 Also: - bump bundler to 2.7.0 - work around the fix for https://bugs.ruby-lang.org/issues/21196 that appeared in 3.4.5 --- .ruby-version | 2 +- Gemfile.lock | 2 +- app/models/command/parser/context.rb | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.ruby-version b/.ruby-version index 4d9d11cf5..4f5e69734 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.4.2 +3.4.5 diff --git a/Gemfile.lock b/Gemfile.lock index bcd197099..f522d6b02 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -628,4 +628,4 @@ DEPENDENCIES webmock BUNDLED WITH - 2.5.21 + 2.7.0 diff --git a/app/models/command/parser/context.rb b/app/models/command/parser/context.rb index 0c4441ba7..d19e522fc 100644 --- a/app/models/command/parser/context.rb +++ b/app/models/command/parser/context.rb @@ -58,16 +58,16 @@ class Command::Parser::Context Collection.where("lower(name) like ?", "%#{string.downcase}%").first end + def filter + user.filters.from_params(params.permit(*Filter::Params::PERMITTED_PARAMS).reverse_merge(**FilterScoped::DEFAULT_PARAMS)) + end + private attr_reader :controller, :action, :params MAX_CARDS = 20 MAX_CLOSED_CARDS = 10 - def filter - user.filters.from_params(params.permit(*Filter::Params::PERMITTED_PARAMS).reverse_merge(**FilterScoped::DEFAULT_PARAMS)) - end - def viewing_card_perma? controller == "cards" && action == "show" end