Module: ActiveDecorator::RelationDecoratorLegacy

Defined in:
lib/active_decorator/decorator.rb

Overview

Override AR::Relation#to_a to decorate each element after being loaded (for AR 3 and 4)

Instance Method Summary collapse

Instance Method Details

#to_aObject



103
104
105
# File 'lib/active_decorator/decorator.rb', line 103

def to_a
  ActiveDecorator::Decorator.instance.decorate super
end