Skip to content

Commit

Permalink
Remove constantize
Browse files Browse the repository at this point in the history
  • Loading branch information
360dgries committed Oct 17, 2024
1 parent 5521cb2 commit 33030ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/fhir_client/ext/reference.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Reference
include FHIR::ReferenceExtras

def resource_class
FHIR.const_get(resource_type).constantize unless contained?
FHIR.const_get(resource_type) unless contained?
end
end
end
Expand All @@ -93,7 +93,7 @@ class Reference
include FHIR::ReferenceExtras

def resource_class
FHIR::DSTU2.const_get(resource_type).constantize unless contained?
FHIR::DSTU2.const_get(resource_type) unless contained?
end
end
end
Expand All @@ -105,7 +105,7 @@ class Reference
include FHIR::ReferenceExtras

def resource_class
FHIR::STU3.const_get(resource_type).constantize unless contained?
FHIR::STU3.const_get(resource_type) unless contained?
end
end
end
Expand All @@ -117,7 +117,7 @@ class Reference < FHIR::R4B::Model
include FHIR::ReferenceExtras

def resource_class
FHIR::R4B.const_get(resource_type).constantize unless contained?
FHIR::R4B.const_get(resource_type) unless contained?
end
end
end
Expand All @@ -129,7 +129,7 @@ class Reference < FHIR::R5::Model
include FHIR::ReferenceExtras

def resource_class
FHIR::R5.const_get(resource_type).constantize unless contained?
FHIR::R5.const_get(resource_type) unless contained?
end
end
end
Expand Down

0 comments on commit 33030ae

Please sign in to comment.