A platform for community discussion. Free, open, simple.
downgrade rails properly
Sam1834417e2fcf
diff --git a/Gemfile b/Gemfileindex daf906ca0d7..dafa11dcbaa 100644--- a/Gemfile+++ b/Gemfile@@ -13,13 +13,13 @@ if rails_master?gem 'rails', git: 'https://github.com/rails/rails.git'gem 'seed-fu', git: 'https://github.com/SamSaffron/seed-fu.git', branch: 'discourse'else- gem 'actionmailer', '~> 5.1'- gem 'actionpack', '~> 5.1'- gem 'actionview', '~> 5.1'- gem 'activemodel', '~> 5.1'- gem 'activerecord', '~> 5.1'- gem 'activesupport', '~> 5.1'- gem 'railties', '~> 5.1'+ gem 'actionmailer', '5.1.5'+ gem 'actionpack', '5.1.5'+ gem 'actionview', '5.1.5'+ gem 'activemodel', '5.1.5'+ gem 'activerecord', '5.1.5'+ gem 'activesupport', '5.1.5'+ gem 'railties', '5.1.5'gem 'sprockets-rails'gem 'seed-fu'enddiff --git a/Gemfile.lock b/Gemfile.lockindex 966a6612f8b..a614a233fbf 100644--- a/Gemfile.lock+++ b/Gemfile.lock@@ -1,39 +1,39 @@GEMremote: https://rubygems.org/specs:- actionmailer (5.2.0)- actionpack (= 5.2.0)- actionview (= 5.2.0)- activejob (= 5.2.0)+ actionmailer (5.1.5)+ actionpack (= 5.1.5)+ actionview (= 5.1.5)+ activejob (= 5.1.5)mail (~> 2.5, >= 2.5.4)rails-dom-testing (~> 2.0)- actionpack (5.2.0)- actionview (= 5.2.0)- activesupport (= 5.2.0)+ actionpack (5.1.5)+ actionview (= 5.1.5)+ activesupport (= 5.1.5)rack (~> 2.0)rack-test (>= 0.6.3)rails-dom-testing (~> 2.0)rails-html-sanitizer (~> 1.0, >= 1.0.2)- actionview (5.2.0)- activesupport (= 5.2.0)+ actionview (5.1.5)+ activesupport (= 5.1.5)builder (~> 3.1)erubi (~> 1.4)rails-dom-testing (~> 2.0)rails-html-sanitizer (~> 1.0, >= 1.0.3)active_model_serializers (0.8.4)activemodel (>= 3.0)- activejob (5.2.0)- activesupport (= 5.2.0)+ activejob (5.1.5)+ activesupport (= 5.1.5)globalid (>= 0.3.6)- activemodel (5.2.0)- activesupport (= 5.2.0)- activerecord (5.2.0)- activemodel (= 5.2.0)- activesupport (= 5.2.0)- arel (>= 9.0)- activesupport (5.2.0)+ activemodel (5.1.5)+ activesupport (= 5.1.5)+ activerecord (5.1.5)+ activemodel (= 5.1.5)+ activesupport (= 5.1.5)+ arel (~> 8.0)+ activesupport (5.1.5)concurrent-ruby (~> 1.0, >= 1.0.2)- i18n (>= 0.7, < 2)+ i18n (~> 0.7)minitest (~> 5.1)tzinfo (~> 1.1)addressable (2.5.2)@@ -41,7 +41,7 @@ GEMannotate (2.7.4)activerecord (>= 3.2, < 6.0)rake (>= 10.4, < 13.0)- arel (9.0.0)+ arel (8.0.0)ast (2.4.0)aws-eventstream (1.0.0)aws-partitions (1.91.0)@@ -135,7 +135,7 @@ GEMhkdf (0.3.0)htmlentities (4.3.4)http_accept_language (2.0.5)- i18n (1.0.1)+ i18n (0.9.5)concurrent-ruby (~> 1.0)image_size (1.5.0)in_threads (1.5.0)@@ -272,9 +272,9 @@ GEMrails_multisite (2.0.4)activerecord (> 4.2, < 6)railties (> 4.2, < 6)- railties (5.2.0)- actionpack (= 5.2.0)- activesupport (= 5.2.0)+ railties (5.1.5)+ actionpack (= 5.1.5)+ activesupport (= 5.1.5)method_sourcerake (>= 0.8.7)thor (>= 0.18.1, < 2.0)@@ -405,13 +405,13 @@ PLATFORMSrubyDEPENDENCIES- actionmailer (~> 5.1)- actionpack (~> 5.1)- actionview (~> 5.1)+ actionmailer (= 5.1.5)+ actionpack (= 5.1.5)+ actionview (= 5.1.5)active_model_serializers (~> 0.8.3)- activemodel (~> 5.1)- activerecord (~> 5.1)- activesupport (~> 5.1)+ activemodel (= 5.1.5)+ activerecord (= 5.1.5)+ activesupport (= 5.1.5)annotateaws-sdk-s3barber@@ -479,7 +479,7 @@ DEPENDENCIESrack-mini-profilerrack-protectionrails_multisite- railties (~> 5.1)+ railties (= 5.1.5)rakerb-fseventrb-inotify (~> 0.9)diff --git a/lib/freedom_patches/fast_pluck.rb b/lib/freedom_patches/fast_pluck.rbindex 9999e5a9db6..3b31b6df9a8 100644--- a/lib/freedom_patches/fast_pluck.rb+++ b/lib/freedom_patches/fast_pluck.rb@@ -1,6 +1,10 @@# Speeds up #pluck so its about 2.2x faster, importantly makes pluck avoid creation of a slew# of AR objects#+#++# until we upgrade rails+returnrequire_dependency 'sql_builder'