Method: Usman::MobileRegistrationService#set_error
- Defined in:
- app/services/usman/mobile_registration_service.rb
#set_error(key, hsh = {}) ⇒ Object
112 113 114 115 116 |
# File 'app/services/usman/mobile_registration_service.rb', line 112 def set_error(key, hsh={}) @error_heading = I18n.t("#{key}.heading") @error_message = I18n.t("#{key}.message") @error_details = hsh if hsh.is_a?(Hash) end |