Ruby on Rails Wednesday, July 25, 2012

I am using this scope , in which geo_ids is a sorted array of
Ids ...

scope :geo_filtered_with, lambda { |geo_ids|
where(:id => geo_ids)
}

is the resulting output always sorted according to this order ? or
should I modify it ?

thanks for your feedback

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment