Skip to content

Aliasing Distribution Causes Naming collision in Main App #45

Description

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions