Is it possible to determine if you are in the context of a running Rails server or console in an initializer when Spring is used? I've seen similar questions that don't take Spring into account.
© 2022 - 2024 — McMap. All rights reserved.
Is it possible to determine if you are in the context of a running Rails server or console in an initializer when Spring is used? I've seen similar questions that don't take Spring into account.
© 2022 - 2024 — McMap. All rights reserved.
defined?(Rails)
? – Tideway$PROGRAM_NAME.include? 'spring'
. – Cuttle