def decorate(resource)
      return resource if resource.is_a? ResourceDecorator
      return resource.map { |item| decorate item } if resource.respond_to? :map
      decorator = Map.resource_decorator_map resource.class, controller_to_get(:application_decorator)
      decorator ? decorator.new(resource) : resource
    end
def decorate(resource)
      return resource if resource.is_a? ResourceDecorator
      return resource.map { |item| decorate item } if resource.respond_to? :map
      decorator = Map.resource_decorator_map resource.class, controller_to_get(:application_decorator)
      decorator ? decorator.new(resource) : resource
    end
Wrap resource(s) with decorator(s).
 @param resource [Object, Enumerable]
 @return [Wallaby::ResourceDecorator, Enumerable<Wallaby::ResourceDecorator>] decorator(s)