It is required when config.load_defaults 5.2 is absent from application.rb. Otherwise, when entering email for non-existent user this code from session_controller.rb works incorrectly:
def create
session = build_passwordless_session(find_authenticatable)
if session.save
Mailer.magic_link(session).deliver_now
end
render
end
save actually returns true and Mailer.magic_link(nil) is called.
It is required when
config.load_defaults 5.2
is absent fromapplication.rb
. Otherwise, when entering email for non-existent user this code fromsession_controller.rb
works incorrectly:save
actually returnstrue
andMailer.magic_link(nil)
is called.