Patch to allow ActiveRecord's find to take a Range of IDs

View: New views
1 Messages — Rating Filter:   Alert me  

Patch to allow ActiveRecord's find to take a Range of IDs

by Michael Breen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi.

I have a patch that will let find to take a Range of IDs. This will  
allow you to do `Person.find(5..10)` or `Person.find(1, 6..11)`.

https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/3419-allow-activerecords-find-to-take-a-range

Thanks.
Mike

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@...
To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---