lib/isomorfeus/policy/config.rb in isomorfeus-policy-1.0.0.zeta5 vs lib/isomorfeus/policy/config.rb in isomorfeus-policy-1.0.0.zeta6
- old
+ new
@@ -3,10 +3,11 @@
def cached_policy_classes
@cached_array_classes ||= {}
end
def cached_policy_class(class_name)
+ return "::#{class_name}".constantize if Isomorfeus.development?
return cached_policy_classes[class_name] if cached_policy_classes.key?(class_name)
cached_policy_classes[class_name] = "::#{class_name}".constantize
end
if RUBY_ENGINE != 'opal'
@@ -23,6 +24,6 @@
class_name = class_name.split('>::').last if class_name.start_with?('#<')
valid_policy_class_names << class_name
end
end
end
-end
\ No newline at end of file
+end