Module: ActiveDecorator::Monkey::ActiveRecord::Associations::CollectionProxy

Defined in:
lib/active_decorator/monkey/active_record/associations.rb

Instance Method Summary collapse

Instance Method Details

#lastObject



29
30
31
# File 'lib/active_decorator/monkey/active_record/associations.rb', line 29

def last(*)
  ActiveDecorator::Decorator.instance.decorate_association(@association.owner, super)
end

#takeObject



24
25
26
# File 'lib/active_decorator/monkey/active_record/associations.rb', line 24

def take(*)
  ActiveDecorator::Decorator.instance.decorate_association(@association.owner, super)
end