From 6f560106bcf11960af775c3d1ab8fe2ed53729bd Mon Sep 17 00:00:00 2001 From: Krzysztof Kotlarek Date: Tue, 7 Jul 2020 14:57:58 +1000 Subject: [PATCH] FIX: allowlisted_generic_onebox engine should be last --- lib/onebox/engine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/onebox/engine.rb b/lib/onebox/engine.rb index 432fd85d..dd23b1b2 100644 --- a/lib/onebox/engine.rb +++ b/lib/onebox/engine.rb @@ -9,7 +9,7 @@ def self.included(object) def self.engines constants.select do |constant| constant.to_s =~ /Onebox$/ - end.map(&method(:const_get)) + end.map(&method(:const_get)).sort_by { |klass| klass.to_s }.reverse end attr_reader :url, :uri