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
- #add_footer_link(name, href, options = {}) ⇒ Object
- #add_navigation_item(label, path, options = {}) ⇒ Object
- #brand ⇒ Object
Instance Method Details
#add_footer_link(name, href, options = {}) ⇒ Object
23 24 25 26 |
# File 'app/controllers/concerns/design_system/branded.rb', line 23 def (name, href, = {}) ||= [] << { 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 (label, path, = {}) ||= [] << { label:, path:, options: } end |
#brand ⇒ Object
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 |