Skip to content

Commit

Permalink
Use require as a fallback to load geos_c_impl
Browse files Browse the repository at this point in the history
Important for systems such as Amazon Linux where c-extensions are
stored in a different location than Ruby files
  • Loading branch information
januszm committed Jan 30, 2024
1 parent b931b95 commit e7f8a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rgeo/geos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Geos
begin
require_relative "geos/geos_c_impl"
rescue LoadError
# continue
require "geos/geos_c_impl"
end
CAPI_SUPPORTED = RGeo::Geos.const_defined?(:CAPIGeometryMethods)
if CAPI_SUPPORTED
Expand Down

0 comments on commit e7f8a9e

Please sign in to comment.