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