hyperstack-org / hyperstack-org/hyperstack

has_many relationships do not guarantee sort order

Aberta
#131 1 comentário 0 reações 0 responsáveis Ver no GitHub
enhancement
Linguagem predominante
JavaScript
Estrelas
538
Forks
41
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

for example:

if this is executed on the client

```ruby
p = Picture.find(1)
p.imageable = Product.find(1)
p.save
```

Product.find(1) will be at the end of the list (if the collection was already loaded)
but
if you do this on the server the order (by default) is the created_by.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.