diff --git a/Gemfile b/Gemfile index d60e7589..23fcf81c 100644 --- a/Gemfile +++ b/Gemfile @@ -53,6 +53,10 @@ group :test do elsif ENV['RAILS_VERSION'] gem 'actionmailer', "~> #{ENV['RAILS_VERSION']}" gem 'activerecord', "~> #{ENV['RAILS_VERSION']}" + if ENV['RAILS_VERSION'] < '5.1' + gem 'rails-html-sanitizer', '< 1.4.0' + gem 'nokogiri', '< 1.11.0' + end else gem 'actionmailer', ['>= 3.0', '< 8.0'] gem 'activerecord', ['>= 3.0', '< 8.0']