class ActiveDecoratorWithDecorateAssociations::Decorator
Public Instance Methods
decorate(owner, target)
click to toggle source
# File lib/active_decorator_with_decorate_associations/decorator.rb, line 8 def decorate(owner, target) if owner.is_a?(ActiveDecoratorWithDecorateAssociations::Marker) ActiveDecorator::Decorator.instance.decorate(target) else target end end