lib/exception_hunter/error_creator.rb
# Creates an error with the given attributes and persists it to
# the database.
#
# @param [HTTP_TAG, WORKER_TAG, MANUAL_TAG] tag to append to the error if any
# @return [ExceptionHunter::Error, false] the error or false if it was not possible to create it
Creates an error with the given attributes and persists it to
the database.
Creates an error with the given attributes and persists it to the database .
def extract_user_data(**error_attrs)
        user = error_attrs[:user]
        error_attrs[:user_data] = UserAttributesCollector.collect_attributes(user)
        error_attrs.delete(:user)
        error_attrs
      end
def extract_user_data ( ** error_attrs ) user = error_attrs [ :user ] error_attrs [ :user_data ] = UserAttributesCollector . collect_attributes ( user ) error_attrs . delete ( :user ) error_attrs end
Creates an error with the given attributes and persists it to
the database.
Creates an error with the given attributes and persists it to the database .
the error or false if it was not possible to create it
the error or false if it was not possible to create it
ExceptionHunter::Error, false
error_attrs
<not_specific>
<not_specific>
tag to append to the error if any
tag to append to the error if any