Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
232 B
Raw Blame
module Admin::SystemHealthHelper
  def configuration_health_text(text)
    safe_join(text.split(/\b([A-Z][A-Z0-9]*(?:_[A-Z0-9]+)+)\b/).each_with_index.map do |part, index|
      index.odd? ? tag.code(part) : part
    end)
  end
end