 
 class UltimateFlashWidget
 
-  @defaults:
+  @defaults =
     constants:
       widgetDataKey: 'ultimate_flash'
     locales:

      if jqXHR.status >= 400 and jqXHR.responseText
        # try detect Rails raise message
        if raiseMatches = jqXHR.responseText.match /<\/h1>\n<pre>(.+?)<\/pre>/
          thrownError = raiseMatches[1]
        else
          # get short text message as error
          thrownError = jqXHR.responseText  if jqXHR.responseText.length <= @settings.detectPlainTextMaxLength
      else
        thrownError = @settings.defaultThrownError  if $.isString thrownError and not $.isEmptyString thrownError
      text += ': '  if text
      text += "#{thrownError} [#{jqXHR.status}]"
    return @alert text

            # may be parsedJSON is form errors
            if @settings.detectFormErrors is true
              # show message about form with errors
              return @alert @settings.translations.formFieldsError
            else if _.isFunction @settings.detectFormErrors
              # using showFormError as callback
              return @settings.detectFormErrors.apply @, [parsedJSON]
