From 26a18c8cc9ce112f7cf2a308b52952680d9a2cdf Mon Sep 17 00:00:00 2001 From: y-yagi Date: Fri, 17 Dec 2021 05:16:09 +0900 Subject: [PATCH] Latest mongoid only supports Ruby >= 2.5 (#912) Ref: https://github.com/mongodb/mongoid/pull/5058 --- Gemfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 521aaf1..f1a10c3 100644 --- a/Gemfile +++ b/Gemfile @@ -21,4 +21,9 @@ if RUBY_VERSION >= "2.5.0" else gem "rails", "~> 5.0" end -gem "mongoid", github: "mongodb/mongoid" + +if RUBY_VERSION >= "2.5.0" + gem "mongoid", github: "mongodb/mongoid" +else + gem "mongoid", "~> 7.2" +end