Skip to content

Commit

Permalink
shorten lenghty BrowseFilter constant
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard M. Miller committed Apr 16, 2021
1 parent 965d4b2 commit 5062a99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/contributions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def contribution_blueprint_options
end

def allowed_params
params.permit(:format, BrowseFilter::ALLOWED_PARAMS_FILTER)
params.permit(:format, BrowseFilter::ALLOWED_PARAMS)
end

def contribution
Expand Down
2 changes: 1 addition & 1 deletion app/models/browse_filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BrowseFilter
# 'UrgencyLevel' => UrgencyLevelFilter
}.freeze
FILTER_CLASSES = FILTERS.values.freeze
ALLOWED_PARAMS_FILTER = FILTERS.keys.each_with_object({}) do |key, hash|
ALLOWED_PARAMS = FILTERS.keys.each_with_object({}) do |key, hash|
hash[key] = {}
end.freeze

Expand Down

0 comments on commit 5062a99

Please sign in to comment.