Class: Paramoid::Base
- Inherits:
-
Object
- Object
- Paramoid::Base
- Defined in:
- lib/paramoid/base.rb
Instance Method Summary collapse
Instance Method Details
#sanitize(params) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/paramoid/base.rb', line 4 def sanitize(params) params = params.permit(*permitted_params) scalar_params.transform_params!(params) params = default_params.merge(params) ensure_required_params!(params) end |