Module: ActiveDecorator::RelationDecorator

Defined in:
lib/active_decorator/decorator.rb

Overview

Override AR::Relation#records to decorate each element after being loaded (for AR 5+)

Instance Method Summary collapse

Instance Method Details

#recordsObject



96
97
98
# File 'lib/active_decorator/decorator.rb', line 96

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