mirror of
https://github.com/ryankazokas/turbovault-app.git
synced 2026-04-17 05:32:52 +00:00
Moving to github
This commit is contained in:
12
app/helpers/games_helper.rb
Normal file
12
app/helpers/games_helper.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
module GamesHelper
|
||||
def filter_params_for_sort(sort_value)
|
||||
{
|
||||
sort: sort_value,
|
||||
search: params[:search],
|
||||
platform_id: params[:platform_id],
|
||||
genre_id: params[:genre_id],
|
||||
format: params[:format],
|
||||
completion_status: params[:completion_status]
|
||||
}.compact
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user