Module: Filterameter

Defined in:
lib/filterameter.rb,
lib/filterameter/errors.rb,
lib/filterameter/version.rb,
lib/filterameter/sortable.rb,
lib/filterameter/exceptions.rb,
lib/filterameter/filterable.rb,
lib/filterameter/sort_factory.rb,
lib/filterameter/configuration.rb,
lib/filterameter/query_builder.rb,
lib/filterameter/filter_factory.rb,
lib/filterameter/log_subscriber.rb,
lib/filterameter/parameters_base.rb,
lib/filterameter/sort_declaration.rb,
lib/filterameter/sorts/scope_sort.rb,
lib/filterameter/declaration_errors.rb,
lib/filterameter/filter_coordinator.rb,
lib/filterameter/filter_declaration.rb,
lib/filterameter/declarative_filters.rb,
lib/filterameter/filters/arel_filter.rb,
lib/filterameter/registries/registry.rb,
lib/filterameter/filters/scope_filter.rb,
lib/filterameter/sorts/attribute_sort.rb,
lib/filterameter/filters/nested_filter.rb,
lib/filterameter/declarations_validator.rb,
lib/filterameter/filters/matches_filter.rb,
lib/filterameter/filters/maximum_filter.rb,
lib/filterameter/filters/minimum_filter.rb,
lib/filterameter/helpers/requested_sort.rb,
lib/filterameter/options/partial_options.rb,
lib/filterameter/registries/sub_registry.rb,
lib/filterameter/filters/attribute_filter.rb,
lib/filterameter/registries/sort_registry.rb,
lib/filterameter/registries/filter_registry.rb,
lib/filterameter/exceptions/validation_error.rb,
lib/filterameter/filters/attribute_validator.rb,
lib/filterameter/helpers/joins_values_builder.rb,
lib/filterameter/helpers/declaration_with_model.rb,
lib/filterameter/validators/inclusion_validator.rb,
lib/filterameter/filters/conditional_scope_filter.rb,
lib/filterameter/filters/nested_collection_filter.rb,
lib/filterameter/declaration_errors/unexpected_error.rb,
lib/filterameter/declaration_errors/not_a_scope_error.rb,
lib/filterameter/exceptions/undeclared_parameter_error.rb,
lib/filterameter/exceptions/cannot_determine_model_error.rb,
lib/filterameter/declaration_errors/no_such_attribute_error.rb,
lib/filterameter/exceptions/collection_association_sort_error.rb,
lib/filterameter/declaration_errors/filter_scope_argument_error.rb,
lib/filterameter/declaration_errors/cannot_be_inline_scope_error.rb,
lib/filterameter/exceptions/invalid_association_declaration_error.rb,
lib/filterameter/declaration_errors/sort_scope_requires_one_argument_error.rb

Overview

# Filterameter

Defined Under Namespace

Modules: DeclarationErrors, DeclarativeFilters, Errors, Exceptions, Filterable, Filters, Helpers, Options, Registries, Sortable, Sorts, Validators Classes: Configuration, DeclarationsValidator, FilterCoordinator, FilterDeclaration, FilterFactory, LogSubscriber, ParametersBase, QueryBuilder, SortDeclaration, SortFactory

Constant Summary collapse

VERSION =
'1.0.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



14
15
16
# File 'lib/filterameter.rb', line 14

def self.configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



22
23
24
# File 'lib/filterameter.rb', line 22

def self.configure
  yield(configuration)
end

.resetObject



18
19
20
# File 'lib/filterameter.rb', line 18

def self.reset
  @configuration = Configuration.new
end