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

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

Instance Method Summary collapse

Instance Method Details

#last(limit = nil) ⇒ Object



38
39
40
# File 'lib/active_decorator/monkey/active_record/associations.rb', line 38

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

#take(limit = nil) ⇒ Object



33
34
35
# File 'lib/active_decorator/monkey/active_record/associations.rb', line 33

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