Skip to content

Commit 9b77051

Browse files
committed
readability
1 parent 08e6fc5 commit 9b77051

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/controllers/distributions_by_county_controller.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ class DistributionsByCountyController < ApplicationController
22
include DateRangeHelper
33
include DistributionHelper
44

5+
helper_method :filter_params
6+
57
def report
68
setup_date_range_picker
79
start_date = helpers.selected_range.first.utc.iso8601
@@ -21,8 +23,7 @@ def report
2123
)
2224
end
2325

24-
helper_method \
25-
def filter_params
26+
def filter_params
2627
return {} unless params.key?(:filters)
2728

2829
params

0 commit comments

Comments
 (0)