Module: Adminterface::Extensions::SidebarSection

Defined in:
lib/adminterface/extensions/sidebar_section.rb

Instance Method Summary collapse

Instance Method Details

#idObject



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)
  options = args.extract_options!
  name = args.first
  @position = options[:position]&.to_s
  super(name, options, &block)
end

#partial_nameObject



23
24
25
26
27
# File 'lib/adminterface/extensions/sidebar_section.rb', line 23

def partial_name
  return options[:partial] if name.blank?

  super
end

#titleObject



17
18
19
20
21
# File 'lib/adminterface/extensions/sidebar_section.rb', line 17

def title
  return if name.blank?

  super
end