Class: AbAdmin::Menu::Builder

Inherits:
AbstractBuilder show all
Includes:
Singleton
Defined in:
lib/ab_admin/menu/builder.rb

Direct Known Subclasses

AdminMenu

Class Method Summary collapse

Methods inherited from AbstractBuilder

#initialize, #render

Methods inherited from BaseGroup

#group, #link, #model, #render_nested

Methods included from Utils::EvalHelpers

#call_method_or_proc_on, #evaluate_method

Constructor Details

This class inherits a constructor from AbAdmin::Menu::AbstractBuilder

Class Method Details

.draw(&block) ⇒ Object



6
7
8
9
# File 'lib/ab_admin/menu/builder.rb', line 6

def self.draw(&block)
  I18n.locale = AbAdmin.locale if AbAdmin.locale
  instance.instance_eval &block if block_given?
end

.render(*args) ⇒ Object



11
12
13
# File 'lib/ab_admin/menu/builder.rb', line 11

def self.render(*args)
  instance.render(*args)
end