Module: CubaApi::InputFilter
- Defined in:
- lib/cuba_api/input_filter.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#req_filter(model = nil, context = nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/cuba_api/input_filter.rb', line 12 def req_filter( model = nil, context = nil ) @_filter ||= begin filter = self.class.factory.new_filter( model ).use( context ) filter.filter_it( parse_request_body ) end end |