Module: DesignSystem::Branded

Extended by:
ActiveSupport::Concern
Defined in:
app/controllers/concerns/design_system/branded.rb

Overview

This concern manages choosing the relevant layout for our given design system

Instance Method Summary collapse

Instance Method Details



23
24
25
26
# File 'app/controllers/concerns/design_system/branded.rb', line 23

def add_footer_link(name, href, options = {})
  @footer_links ||= []
  @footer_links << { name:, href:, options: }
end

#add_navigation_item(label, path, options = {}) ⇒ Object



18
19
20
21
# File 'app/controllers/concerns/design_system/branded.rb', line 18

def add_navigation_item(label, path, options = {})
  @navigation_items ||= []
  @navigation_items << { label:, path:, options: }
end

#brandObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'app/controllers/concerns/design_system/branded.rb', line 14

def brand
  raise NotImplementedError, 'You need to implement #brand in your ApplicationController'
end