diff options
Diffstat (limited to 'lib/sidebars/concerns/has_partial.rb')
-rw-r--r-- | lib/sidebars/concerns/has_partial.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/sidebars/concerns/has_partial.rb b/lib/sidebars/concerns/has_partial.rb new file mode 100644 index 00000000000..e89bc66bc40 --- /dev/null +++ b/lib/sidebars/concerns/has_partial.rb @@ -0,0 +1,21 @@ +# 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 |