Sha256: d8e16ec0ec32ad8a6c58b96e0d20f33e0fd85bfc9a9aa0fbed217a5979e6f0cf

Contents?: true

Size: 330 Bytes

Versions: 8

Compression:

Stored size: 330 Bytes

Contents

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

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ab_admin-0.11.0 lib/ab_admin/menu/builder.rb
ab_admin-0.10.0 lib/ab_admin/menu/builder.rb
ab_admin-0.9.0 lib/ab_admin/menu/builder.rb
ab_admin-0.8.3 lib/ab_admin/menu/builder.rb
ab_admin-0.8.2 lib/ab_admin/menu/builder.rb
ab_admin-0.8.1 lib/ab_admin/menu/builder.rb
ab_admin-0.8.0 lib/ab_admin/menu/builder.rb
ab_admin-0.7.0 lib/ab_admin/menu/builder.rb