Module: Lupa
- Defined in:
- lib/lupa.rb,
lib/lupa/search.rb,
lib/lupa/version.rb,
lib/lupa/scope_methods.rb
Overview
Lupa is a Ruby gem that lets you create simple, robust and scaleable search filters with ease using regular Ruby classes and object oriented design patterns.
Lupa is Framework and ORM agnostic. It will work with any ORM or Object that can build a query using chained method calls, like ActiveRecord.
Defined Under Namespace
Modules: ScopeMethods Classes: Search
Constant Summary collapse
- DefaultScopeError =
Raised when attempting to use the class method ‘search` without defining a default scope in the initializer.
Class.new(StandardError)
- DefaultSearchAttributesError =
Raised when the ‘default_search_attributes` method doesn’t return a Hash.
Class.new(StandardError)
- ScopeMethodNotImplementedError =
Raised when a search attribute is passed that doesn’t have a corresponding method defined in the Scope class.
Class.new(NotImplementedError)
- ResultMethodNotImplementedError =
Raised when attempting to call a method on the search results that the resulting scope doesn’t respond to.
Class.new(NotImplementedError)
- SearchAttributesError =
Raised when search attributes passed are not a Hash or Hash-like object that responds to the ‘keys` method.
Class.new(StandardError)
- VERSION =
"1.0.2"