Skip to content

Commit

Permalink
add linebreak in if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterfarrell9 committed May 17, 2023
1 parent 4ad473f commit cb40501
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/models/medium.rb
Original file line number Diff line number Diff line change
Expand Up @@ -286,11 +286,12 @@ def self.search_by(search_params, page)
# generic media sorts as results even if the 'all' radio button
# is seleted
if search_params[:all_types] == '1'
search_params[:types] = if search_params[:from] == 'start'
Medium.generic_sorts
else
[]
end
search_params[:types] =
if search_params[:from] == 'start'
Medium.generic_sorts
else
[]
end
end
search_params[:teachable_ids] = TeachableParser.new(search_params)
.teachables_as_strings
Expand Down

0 comments on commit cb40501

Please sign in to comment.