Skip to content
Browse files

add :call-seq: to +first+ and +last+ CollectionProxy methods

  • Loading branch information...
1 parent 7e5beca commit 3e847afbdd88d53bbf85eb2436ead2dab88f6e5b Francesco Rodriguez committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 activerecord/lib/active_record/associations/collection_proxy.rb
View
6 activerecord/lib/active_record/associations/collection_proxy.rb
@@ -129,6 +129,9 @@ class CollectionProxy < Relation
##
# :method: first
#
+ # :call-seq:
+ # first(limit = nil)
+ #
# Returns the first record, or the first +n+ records, from the collection.
# If the collection is empty, the first form returns +nil+, and the second
# form returns an empty array.
@@ -159,6 +162,9 @@ class CollectionProxy < Relation
##
# :method: last
#
+ # :call-seq:
+ # last(limit = nil)
+ #
# Returns the last record, or the last +n+ records, from the collection.
# If the collection is empty, the first form returns +nil+, and the second
# form returns an empty array.

0 comments on commit 3e847af

Please sign in to comment.
Something went wrong with that request. Please try again.