app/controllers/application_controller.rb
# params should be skipped in conditional query
params should be skipped in conditional query
params should be skipped in conditional query
def params_to_skip 
		[:access_token, :lat, :long, 
			:page, :per_page, :distance, 
			:format, :user_role, :sortBy, :search
		]
	end
def params_to_skip [ :access_token , :lat , :long , :page , :per_page , :distance , :format , :user_role , :sortBy , :search ] end
params should be skipped in conditional query
params should be skipped in conditional query