From 55f449edc53b334d8b89a49305377a66dba8d4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 16 Aug 2017 23:00:52 +0200 Subject: [PATCH] FIX: reloading issues with classes --- lib/plugin/instance.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rb index 8207feae75d..a3caa4822ca 100644 --- a/lib/plugin/instance.rb +++ b/lib/plugin/instance.rb @@ -92,7 +92,7 @@ class Plugin::Instance def whitelist_staff_user_custom_field(field) reloadable_patch do |plugin| - User.register_plugin_staff_custom_field(field, plugin) if plugin.enabled? + ::User.register_plugin_staff_custom_field(field, plugin) if plugin.enabled? end end @@ -250,19 +250,19 @@ class Plugin::Instance def register_topic_custom_field_type(name, type) reloadable_patch do |plugin| - Topic.register_custom_field_type(name, type) if plugin.enabled? + ::Topic.register_custom_field_type(name, type) if plugin.enabled? end end def register_post_custom_field_type(name, type) reloadable_patch do |plugin| - Post.register_custom_field_type(name, type) if plugin.enabled? + ::Post.register_custom_field_type(name, type) if plugin.enabled? end end def register_group_custom_field_type(name, type) reloadable_patch do |plugin| - Group.register_custom_field_type(name, type) if plugin.enabled? + ::Group.register_custom_field_type(name, type) if plugin.enabled? end end