Module: Adminterface::Extensions::SidebarSection
- Defined in:
- lib/adminterface/extensions/sidebar_section.rb
Instance Method Summary collapse
Instance Method Details
#id ⇒ Object
11 12 13 14 15 |
# File 'lib/adminterface/extensions/sidebar_section.rb', line 11 def id return if name.blank? super end |
#initialize(*args, &block) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/adminterface/extensions/sidebar_section.rb', line 4 def initialize(*args, &block) = args. name = args.first @position = [:position]&.to_s super(name, , &block) end |
#partial_name ⇒ Object
23 24 25 26 27 |
# File 'lib/adminterface/extensions/sidebar_section.rb', line 23 def partial_name return [:partial] if name.blank? super end |
#title ⇒ Object
17 18 19 20 21 |
# File 'lib/adminterface/extensions/sidebar_section.rb', line 17 def title return if name.blank? super end |