diff --git a/lib/global/base.rb b/lib/global/base.rb
index <HASH>..<HASH> 100644
--- a/lib/global/base.rb
+++ b/lib/global/base.rb
@@ -11,7 +11,7 @@ module Global
 
     extend self
 
-    attr_writer :environment, :config_directory, :namespace, :except, :only
+    attr_writer :environment, :config_directory, :namespace, :except, :only, :whitelist_classes
 
     def configure
       yield self
@@ -46,6 +46,10 @@ module Global
       @only ||= []
     end
 
+    def whitelist_classes
+      @whitelist_classes ||= []
+    end
+
     def generate_js(options = {})
       current_namespace = options[:namespace] || namespace
 
@@ -83,7 +87,8 @@ module Global
     def load_yml_file(file)
       YAML.safe_load(
         ERB.new(IO.read(file)).result,
-        [Date, Time, DateTime, Symbol], [], true
+        [Date, Time, DateTime, Symbol].concat(whitelist_classes),
+        [], true
       )
     end
Added whitelist_classes functionality in order to be able to whitelist your own classes