Closed kieranklaassen closed 3 months ago
Works for me?
Let me try figure out more, maybe the version of JSP or rails. I'll get back to you
Reopen if you figure it out 👍
The problem in the conflict between https://github.com/honeybadger-io/heya and Refer. It seems that if both of these gems are installed, any CLI command returns the error uninitialized constant Refer::HasReferrals (NameError)
.
I experimented with my fork, and if I explicitly specify the path to this file, the error no longer appears. However, I’m not sure if this is the correct solution in this case.
I've added require_relative "../app/models/concerns/refer/has_referrals"
to lib/refer.rb:4
https://github.com/vkazakevich/refer/commit/04232fcc16efd753c0492452c2d41f6e870bf5a6
Bug Report
To Reproduce:
❯ bundle add refer ❯ bin/rails generate refer:install
Expected Behavior:
To install
Actual Behavior:
Error:
/Users/kieranklaassen/.rbenv/versions/3.3.0/lib/ruby/gems/3.3.0/gems/refer-0.5.0/lib/refer.rb:57:in `block in': uninitialized constant Refer::HasReferrals (NameError)