mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-26 16:03:42 +01:00
Add mention of YJIT in admin dashboard if enabled (#27283)
This commit is contained in:
parent
d22515861e
commit
3c13d70600
1 changed files with 2 additions and 1 deletions
|
@ -25,7 +25,8 @@ class Admin::Metrics::Dimension::SoftwareVersionsDimension < Admin::Metrics::Dim
|
||||||
end
|
end
|
||||||
|
|
||||||
def ruby_version
|
def ruby_version
|
||||||
value = "#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}"
|
yjit = defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
|
||||||
|
value = "#{RUBY_VERSION}p#{RUBY_PATCHLEVEL}#{yjit ? ' +YJIT' : ''}"
|
||||||
|
|
||||||
{
|
{
|
||||||
key: 'ruby',
|
key: 'ruby',
|
||||||
|
|
Loading…
Reference in a new issue