Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport 'Fix the unused keyword arguments for the budgets workflows' to v0.26 #11227

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion decidim-budgets/lib/decidim/budgets/workflows/all.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def highlighted?(_resource)
end

# Users can vote in all budgets with this workflow.
def vote_allowed?(resource, _consider_progress: true)
def vote_allowed?(resource, consider_progress: true) # rubocop:disable Lint/UnusedMethodArgument
!voted?(resource)
end
end
Expand Down
2 changes: 1 addition & 1 deletion decidim-budgets/lib/decidim/budgets/workflows/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def highlighted?(_resource)
# Using `false` allow UI to offer users to discard votes in progress to start voting in another resource.
#
# Returns Boolean.
def vote_allowed?(_resource, _consider_progress: true)
def vote_allowed?(_resource, consider_progress: true) # rubocop:disable Lint/UnusedMethodArgument
raise StandardError, "Not implemented"
end

Expand Down
Loading