A platform for community discussion. Free, open, simple.
DEV: plugin API to register User custom field types
Régis Hanolae05245b0077
diff --git a/lib/plugin/instance.rb b/lib/plugin/instance.rbindex 9849d0847c4..67695e15a06 100644--- a/lib/plugin/instance.rb+++ b/lib/plugin/instance.rb@@ -374,6 +374,13 @@ class Plugin::Instanceendend+ # Applies to all sites in a multisite environment. Ignores plugin.enabled?+ def register_user_custom_field_type(name, type)+ reloadable_patch do |plugin|+ ::User.register_custom_field_type(name, type)+ end+ end+def register_seedfu_fixtures(paths)paths = [paths] if !paths.kind_of?(Array)SeedFu.fixture_paths.concat(paths)