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
in a view helper (under app/helpers) add a constant like MY_CONSTANT = 'const'
restart the rails server
Buggy behavior:
/app/helpers/test_helper.rb:2: warning: already initialized constant TestHelper::MY_CONSTANT
app/helpers/test_helper.rb:2: warning: previous definition of MY_CONSTANT was here
This seems to be due to draper loading all the helpers so it can use the h method, and then zeitwerk autoloading everything again (or the other way, I'm not sure).
The text was updated successfully, but these errors were encountered:
Rails 6.0.0
Draper 3.1.0
Steps to reproduce:
MY_CONSTANT = 'const'
Buggy behavior:
This seems to be due to draper loading all the helpers so it can use the
h
method, and then zeitwerk autoloading everything again (or the other way, I'm not sure).The text was updated successfully, but these errors were encountered: