On 25 July 2012 13:35, Erwin <yves_dufour@mac.com> wrote:
> 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 ?
Since you have not specified any sort specification the order is not
defined. If you want a particular order you must specify it.
Colin
>
> 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.
>
>
--
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