Class: ActiveAdmin::ArbreDecorator

Inherits:
Decorator
  • Object
show all
Includes:
ActionView::Helpers, Arbre::Element::BuilderMethods
Defined in:
lib/activeadmin/arbre_decorator.rb

Instance Method Summary collapse

Methods inherited from Decorator

decorate, decorates_association, #model, #nil?

Constructor Details

#initialize(obj) ⇒ ArbreDecorator

Returns a new instance of ArbreDecorator.



10
11
12
13
# File 'lib/activeadmin/arbre_decorator.rb', line 10

def initialize(obj)
  super
  singleton_class.include Rails.application.routes.url_helpers
end