Prefer keyword arguments when method has optional boolean arguments

This commit is contained in:
Andy Allan 2020-11-11 16:14:24 +00:00
parent 1f242978af
commit 78b9d92207
9 changed files with 15 additions and 18 deletions

View file

@ -4,7 +4,7 @@ class ChangesetCommentsController < ApplicationController
authorize_resource
before_action -> { check_database_readable(true) }
before_action -> { check_database_readable(:need_api => true) }
around_action :web_timeout
##