Skip to content
Snippets Groups Projects
Commit 86dceaa8 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

sort diplomas

parent 465fd647
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,9 @@ class Education::Diploma < ApplicationRecord
scope :ordered, -> (language = nil) { order(:level) }
def self.certifications
Dir.children(CERTIFICATIONS_DIRECTORY).map do |filename|
Dir.children(CERTIFICATIONS_DIRECTORY).map { |filename|
filename.remove('.svg')
end
}.sort
end
def certification_icon_path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment