Zeitwerk
rails 6 autoloading behavior
[2] pry(#<RSpec::ExampleGroups::User::ProfileImage>)> create(:user)
NameError: uninitialized constant Notifications::WelcomeNotificationWorker
from /opt/apps/forem/app/models/notification.rb:79:in `send_welcome_notification'
[8] pry(#<RSpec::ExampleGroups::User::ProfileImage>)> show-method Notifications
From: /opt/apps/forem/app/services/notifications.rb:1
Module name: Notifications
Number of lines: 78
module Notifications
def self.user_data(user)[7] pry(#<RSpec::ExampleGroups::User::ProfileImage>)> constant = "Notifications::WelcomeNotificationWorker".constantize
NameError: uninitialized constant Notifications::WelcomeNotificationWorker
from /opt/apps/forem/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.3.1/lib/active_support/inflector/methods.rb:288:in `const_get'
[16] pry(#<RSpec::ExampleGroups::User::ProfileImage>)> Notifications.constants
=> [] Last updated