# frozen_string_literal: true class NavigationPolicy < ApplicationPolicy def blog? policy(:post).index? end def projects? policy(:project).index? end def files? policy(:uploaded_file).index? end def resume? policy(:personal).resume? end def linkedin? resume? end end