diff --git a/apps/dashboard/app/apps/favorite_path.rb b/apps/dashboard/app/apps/favorite_path.rb index 772c71e29e..8a8401089e 100644 --- a/apps/dashboard/app/apps/favorite_path.rb +++ b/apps/dashboard/app/apps/favorite_path.rb @@ -1,19 +1,21 @@ +# frozen_string_literal: true + # FavoritePath is a class that the dashboard uses to build # links to various directories. # # Sites use initializers to create FavoritePaths and add them to # OodFilesApp.candidate_favorite_paths. class FavoritePath - def initialize(path, title:nil, filesystem:nil) + def initialize(path, title: nil, filesystem: nil) @title = title || path.try(:title) @path = Pathname.new(path.to_s) - @filesystem = filesystem || path.try(:filesystem) || "fs" + @filesystem = filesystem || path.try(:filesystem) || 'fs' end attr_accessor :path, :title, :filesystem def remote? - filesystem != "fs" + filesystem != 'fs' end # FontAwesome icon to use for links