thanks for helping me i will modofy it


On Sun, Mar 9, 2014 at 6:36 PM, Alvaro Muhlethaler <notifications@github.com
> wrote:

> In activerecord/lib/active_record/relation/finder_methods.rb:
>
> >      # If no record can be found for all of the listed ids, then RecordNotFound will be raised. If the primary key
> >      # is an integer, find by id coerces its arguments using +to_i+.
> >      #
> > -    #   Person.find(1)          # returns the object for ID = 1
> > -    #   Person.find("1")        # returns the object for ID = 1
> > -    #   Person.find("31-sarah") # returns the object for ID = 31
> > -    #   Person.find(1, 2, 6)    # returns an array for objects with IDs in (1, 2, 6)
> > -    #   Person.find([7, 17])    # returns an array for objects with IDs in (7, 17)
> > -    #   Person.find([1])        # returns an array for the object with ID = 1
> > +    #   Person.find(1)                    # returns the object for ID = 1
> > +    #   Person.find("1")                  # returns the object for ID = 1
> > +    #   Person.find("31-sarah")           # returns the object for ID = 31
> > +    #   Person.find(Administrator.first)  # returns the object for ID = Administrator.first.id
> > +    #   Person.find(1, 2, 6)              # returns an array for objects with IDs in (1, 2, 6)
> > +    #   Person.find([7, 17])              # returns an array for objects with IDs in (7, 17)
> > +    #   Person.find([1])                  # returns an array for the object with ID = 1
> >      #   Person.where("administrator = 1").order("created_on DESC").find(1)
>
> That line wasn't modified, but is not commented, you are right.
> I'd add this comment:
> returns the object for ID = 1, administrator = 1 and ordered desc by
> created_on
>
> What do you think?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/rails/rails/pull/14314/files#r10416622>
> .
>