def flash_config(opts)
      if opts[:title].blank?
        opts[:title] = opts[:text]
        opts.delete(:text)
      end

      flash[:sweetify] = opts.to_json
    end
def flash_config(opts)
      if opts[:title].blank?
        opts[:title] = opts[:text]
        opts.delete(:text)
      end

      flash[:sweetify] = opts.to_json
    end
Flash the configuration as json
 If no title is specified, use the text as the title

 @param [Hash] opts
 @return [Void]