hyperstack-org / hyperstack-org/hyperstack

trying to destroy an item that is not included in the default scope fails

オープン
#260 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
good first issue
主要言語
JavaScript
スター
538
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

If you have a default_scope (other than just `all`) then some records are not included by a simple query. However you can get you can override the default scope using `unscoped`. This means you can get the id of records that are not in the default scope.

If you try to destroy one of those records, it doesn't work.

Fix would be on about line 590 of `isomorphic_base.rb` in the server side `destroy_record` method. Just change `model.find(id)` to `model.unscoped.find(id)`

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。