FIX: Whoops, DiscourseLocalOnebox became DiscourseGlobalOnebox

This commit is contained in:
riking 2015-04-24 01:09:38 -07:00
parent 923c164d54
commit 1412687112

View file

@ -17,7 +17,8 @@ module Onebox
route = Rails.application.routes.recognize_path(uri.path) route = Rails.application.routes.recognize_path(uri.path)
case route[:controller] case route[:controller]
when 'topics' when 'topics'
true # super will use matches_regexp to match the domain name
super
else else
false false
end end