app/observers/user_observer.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method has too many lines. [12/10]
Open

  def after_create(user)
    if SystemSetting.require_activation?
      if SystemSetting.administrator_activates?
        Role.find_by_name('site_admin').users.each do |admin|
          UserNotifier.notification_to_administrators_of_new(user, admin).deliver
Severity: Minor
Found in app/observers/user_observer.rb by rubocop

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

There are no issues that match your filters.

Category
Status