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
10
# File 'lib/ab_admin/menu/builder.rb', line 6

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

.render(*args) ⇒ Object


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

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