|
|
@ -113,14 +113,14 @@ class User < ApplicationRecord |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def was_migrated_from_softwire? |
|
|
|
|
|
|
|
legacy_users.any? |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def old_user_id |
|
|
|
def old_user_id |
|
|
|
legacy_users&.first&.old_user_id || read_attribute(:old_user_id) |
|
|
|
legacy_users&.first&.old_user_id || read_attribute(:old_user_id) |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def was_migrated_from_softwire? |
|
|
|
|
|
|
|
old_user_id.present? |
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
def send_confirmation_instructions |
|
|
|
def send_confirmation_instructions |
|
|
|
return unless active? |
|
|
|
return unless active? |
|
|
|
|
|
|
|
|
|
|
|