I have a Rails app that I have just upgraded to Ruby 2.7.4 which appears to install ruby-statistics as a dependency. In this application, I have a model/namespace class Distribution. When running bundle exec rails console # or server this gem loads prior to the definition of this class and creates an alias in the main app namespace Distribution here:
|
if defined?(Statistics) && !(defined?(Distribution)) |
This causes the app to fail to load with naming conflicts. Removing this line allows my app to load properly.
I have a Rails app that I have just upgraded to Ruby 2.7.4 which appears to install
ruby-statisticsas a dependency. In this application, I have a model/namespaceclass Distribution. When runningbundle exec rails console # or serverthis gem loads prior to the definition of this class and creates an alias in the main app namespaceDistributionhere:ruby-statistics/lib/statistics/distribution.rb
Line 9 in 8a699c2
This causes the app to fail to load with naming conflicts. Removing this line allows my app to load properly.