LoginSignup
1
0

More than 5 years have passed since last update.

mongoidとActiveRecord共存環境でransackを使う方法、undefined method `ransack' for Mongoid

Last updated at Posted at 2018-07-11

undefined method `ransack' for Mongoid

エラー原因はransackのバージョンアップ

undefined method `ransack' for #<Mongoid::Criteria:0x0000001047d960>

本家からmongoid対応のコードが削除された

Rails5のためにransackをアップデートしたらエラーに
15日前(2018/06/26)頃にmongoidに対応したコードは別のGemに切り出そうという会話の流れがあり
mongoidに対応したコードが削除されている。

こちらが新しいransack-mongoidリポジトリ

@znz さんにご指摘いただき、リポジトリを見つけられました。
今後はこちらを入れましょう。

1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0