Bump rubocop from 1.76.1 to 1.81.1
This release includes some updates in the Style/RedundantParentheses and Naming/PredicateMethod rules. We're changing the code accordingly. Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.76.1 to 1.81.1. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](https://github.com/rubocop/rubocop/compare/v1.76.1...v1.81.1) --- updated-dependencies: - dependency-name: rubocop dependency-version: 1.81.1 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Javi Martín
parent
413d0ed9be
commit
1fa3cf8ce7
@@ -42,7 +42,7 @@ module Search
|
||||
end
|
||||
|
||||
def search_finish_date
|
||||
(params[:advanced_search][:date_max].to_date rescue Date.current) || Date.current
|
||||
params[:advanced_search][:date_max].to_date rescue Date.current || Date.current
|
||||
end
|
||||
|
||||
def search_date_range
|
||||
|
||||
@@ -16,7 +16,7 @@ module BudgetsHelper
|
||||
Budget::Ballot.find_by(user: current_user, budget: @budget)
|
||||
end
|
||||
|
||||
def unfeasible_or_unselected_filter
|
||||
def unfeasible_or_unselected_filter?
|
||||
["unselected", "unfeasible"].include?(@current_filter)
|
||||
end
|
||||
|
||||
|
||||
@@ -89,9 +89,8 @@ module ProposalsDashboardHelper
|
||||
end
|
||||
|
||||
def new_resources_since_last_login?(resources, new_actions_since_last_login)
|
||||
if resources.present?
|
||||
resources.present? &&
|
||||
resources.ids.any? { |id| new_actions_since_last_login.include?(id) }
|
||||
end
|
||||
end
|
||||
|
||||
def active_resources_for(proposal)
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
<%= render Shared::AdvancedSearchComponent.new %>
|
||||
|
||||
<% if unfeasible_or_unselected_filter %>
|
||||
<% if unfeasible_or_unselected_filter? %>
|
||||
<ul class="no-bullet submenu">
|
||||
<li class="inline-block">
|
||||
<%= link_to current_path_with_query_params(order: "random", page: 1),
|
||||
|
||||
Reference in New Issue
Block a user