debian-mirror-gitlab/lib/sidebars/concerns/has_partial.rb
2021-10-27 15:23:28 +05:30

22 lines
354 B
Ruby

# frozen_string_literal: true
# This module has the necessary methods to render
# menus using a custom partial
module Sidebars
module Concerns
module HasPartial
def menu_partial
nil
end
def menu_partial_options
{}
end
def menu_with_partial?
menu_partial.present?
end
end
end
end