Class: Filterameter::Filters::NestedCollectionFilter

Inherits:
NestedFilter
  • Object
show all
Defined in:
lib/filterameter/filters/nested_collection_filter.rb

Overview

# Nested Collection Filter

Class NestedCollectionFilter joins the nested table(s), merges the filter to the association’s model, then makes the results distinct.

Instance Attribute Summary

Attributes included from Errors

#errors

Instance Method Summary collapse

Methods inherited from NestedFilter

#initialize

Methods included from Errors

#valid?

Constructor Details

This class inherits a constructor from Filterameter::Filters::NestedFilter

Instance Method Details

#applyObject



10
11
12
# File 'lib/filterameter/filters/nested_collection_filter.rb', line 10

def apply(*)
  super.distinct
end