I wonder, is there any way to make the following code simpler?
def my_filer model_names
model_names.keep_if { |x| not x.empty? }
unless model_names.empty?
where 'model_name_field in (?)', model_names
else
self
end
end