app/observers/user_observer.rb
Method has too many lines. [12/10] Open
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
- Read upRead up
- Exclude checks
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.