Exception: Serega::AttributeNotExist
- Inherits:
-
SeregaError
- Object
- StandardError
- SeregaError
- Serega::AttributeNotExist
- Defined in:
- lib/serega/errors.rb
Overview
AttributeNotExist is raised when serializer is initiated using not existing attribute Example:
UserSerializer.new(only: 'FOO', except: 'FOO', with: 'FOO')
UserSerializer.to_h(user, only: 'FOO', except: 'FOO', with: 'FOO' )