Sha256: c29e2bc4457033e37fa9ced583a470d0a662e576a742be4a9d440cd74edad2a1

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

module AbAdmin
  module Menu
    class Builder < AbstractBuilder
      include ::Singleton

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ab_admin-0.6.1 lib/ab_admin/menu/builder.rb
ab_admin-0.6.0 lib/ab_admin/menu/builder.rb
ab_admin-0.5.0 lib/ab_admin/menu/builder.rb
ab_admin-0.4.0 lib/ab_admin/menu/builder.rb