Module: Brentano
- Defined in:
- lib/brentano/query.rb,
lib/brentano.rb,
lib/brentano/railtie.rb,
lib/brentano/version.rb,
lib/brentano/presenter.rb
Overview
A lightweight wrapper class over ActiveRecord::Relation which allows certain query parameters to be supplied as a hash. Good for automating and securing queries from request params
Defined Under Namespace
Classes: Presenter, Query, Railtie
Constant Summary collapse
- VERSION =
"0.0.3"
- @@qualifier_key =
:options
- @@presenter_module =
"Presenters"
- @@allowed_methods =
[ :limit, :offset ]
- @@allowed_scopes =
[ ]
- @@absolute_limit =
20
Instance Method Summary collapse
Instance Method Details
#config {|_self| ... } ⇒ Object
23 24 25 |
# File 'lib/brentano.rb', line 23 def config yield self end |