b996a82ff4
Extended ProjectFinder in order to handle the following options: - current_user - which user use - project_ids_relation: int[] - project ids to use - params: - trending: boolean - non_public: boolean - starred: boolean - sort: string - visibility_level: int - tags: string[] - personal: boolean - search: string - non_archived: boolean GroupProjectsFinder now inherits from ProjectsFinder. Changed the code in order to use the new available options.
7 lines
138 B
Ruby
7 lines
138 B
Ruby
module ParamsBackwardCompatibility
|
|
private
|
|
|
|
def set_non_archived_param
|
|
params[:non_archived] = params[:archived].blank?
|
|
end
|
|
end
|