You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I dont know if anyone have ever had this issue, nothing is on Google, but my adapter is not loading correctly. I have investigated the issue, the problem was in acts_as_mappable.rb, line around 101
unless Adapters.const_defined?(connection.adapter_name.camelcase)
filename = connection.adapter_name.downcase
require File.join("geokit-rails", "adapters", filename)
end
klass = Adapters.const_get(connection.adapter_name.camelcase)
The klass was defined in Adapters.constants as a Module, and not as a class, resulting in NoMethodError (undefined methodloaded' for Mysql2:Module)`
I have fixed this and will create a pull request. But I don't know why "Mysql2" was defined in Adapters as a Module :s
The text was updated successfully, but these errors were encountered:
@bertocq it has now been merged. Purely a case of I don't always see notifications amongst everything else and also that things don't always pass coverage requirements, but I'll make exceptions, better a non covered bug fix than no bug fix.
Hello. I dont know if anyone have ever had this issue, nothing is on Google, but my adapter is not loading correctly. I have investigated the issue, the problem was in
acts_as_mappable.rb
, line around 101The
klass
was defined in Adapters.constants as a Module, and not as a class, resulting inNoMethodError (undefined method
loaded' for Mysql2:Module)`I have fixed this and will create a pull request. But I don't know why "Mysql2" was defined in Adapters as a Module :s
The text was updated successfully, but these errors were encountered: