app/models/app.rb
# Acceps a hash with the following attributes:
#
# * <tt>:error_class</tt> - the class of error (required to create a new Problem)
# * <tt>:environment</tt> - the environment the source app was running in (required to create a new Problem)
# * <tt>:fingerprint</tt> - a unique value identifying the notice
#
Acceps a hash with the following attributes:
:error_class - the class of error (required to create a new Problem)
:environment - the environment the source app was running in (required to create a new Problem)
:fingerprint - a unique value identifying the notice
Acceps a hash with the following attributes : : error_class - the class of error ( required to create a new Problem ) : environment - the environment the source app was running in ( required to create a new Problem ) : fingerprint - a unique value identifying the notice
def find_or_create_err!(attrs)
    err = Err.where(fingerprint: attrs[:fingerprint]).first
    return err if err
    problem = problems.create!(
      error_class: attrs[:error_class],
      environment: attrs[:environment],
      app_name:    name
    )
    problem.errs.create!(attrs.slice(:fingerprint, :problem_id))
  end
def find_or_create_err! ( attrs ) err = Err . where ( fingerprint : attrs [ :fingerprint ] ) . first return err if err problem = problems . create! ( error_class : attrs [ :error_class ] , environment : attrs [ :environment ] , app_name : name ) problem . errs . create! ( attrs . slice ( :fingerprint , :problem_id ) ) end
Acceps a hash with the following attributes:
 <tt>:error_class</tt> - the class of error (required to create a new Problem)
 <tt>:environment</tt> - the environment the source app was running in (required to create a new Problem)
 <tt>:fingerprint</tt> - a unique value identifying the notice
Acceps a hash with the following attributes : <tt > : error_class< / tt > - the class of error ( required to create a new Problem ) <tt > : environment< / tt > - the environment the source app was running in ( required to create a new Problem ) <tt > : fingerprint< / tt > - a unique value identifying the notice
attrs
<not_specific>