Class: ParameterMissingFormatter
- Inherits:
-
Object
- Object
- ParameterMissingFormatter
- Defined in:
- lib/parameter_missing_formatter.rb
Overview
typed: ignore
Class Method Summary collapse
Class Method Details
.format(error) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/parameter_missing_formatter.rb', line 3 def self.format(error) HH_LOGGER.info 'parameter missing', error: error if error.respond_to?(:param) && error.param.present? I18n.t('parameter_missing', param: error.param).to_s.humanize else 'Please fill all required fields' end end |