lib/active_admin/resource.rb in activeadmin-2.10.1 vs lib/active_admin/resource.rb in activeadmin-2.11.0
- old
+ new
@@ -97,14 +97,14 @@
include Attributes
# The class this resource wraps. If you register the Post model, Resource#resource_class
# will point to the Post class
def resource_class
- ActiveSupport::Dependencies.constantize(resource_class_name)
+ resource_class_name.constantize
end
def decorator_class
- ActiveSupport::Dependencies.constantize(decorator_class_name) if decorator_class_name
+ decorator_class_name&.constantize
end
def resource_name_extension
@resource_name_extension ||= define_resource_name_extension(self)
end