2016-10-09 07:17:34 +03:00
|
|
|
class VolunteerSearch
|
|
|
|
include SearchObject.module(:sorting)
|
|
|
|
|
2024-04-18 18:57:26 +03:00
|
|
|
option(:volunteer_team_id) { |scope, value| scope.joins(:volunteer_team).where volunteer_team: {id: value} }
|
2016-10-09 07:17:34 +03:00
|
|
|
|
2019-04-28 21:10:54 +03:00
|
|
|
sort_by "name"
|
|
|
|
config[:defaults]["sort"] = "#{config[:sort_attributes].first} asc"
|
2016-10-09 07:17:34 +03:00
|
|
|
end
|