lib/alba/association.rb in alba-3.0.0 vs lib/alba/association.rb in alba-3.0.1
- old
+ new
@@ -55,10 +55,9 @@
def constantize(resource)
case resource
when Class
resource
when Symbol, String
- Object.const_get(resource)
self.class.const_cache.fetch(resource) do
self.class.const_cache[resource] = Object.const_get(resource)
end
else
raise Error, "Unexpected resource type: #{resource.class}"