Warnings when start the application
adolfopeccin opened this issue · 2 comments
adolfopeccin commented
Hello,
I cannot find why everytime the application is started it returns:
App 31344 output: .../gems/has_scope-0.7.2/lib/has_scope.rb:2: warning: already initialized constant HasScope::TRUE_VALUES
App 31344 output: .../gems/has_scope-0.7.2/lib/has_scope.rb:2: warning: previous definition of TRUE_VALUES was here
App 31344 output: .../gems/has_scope-0.7.2/lib/has_scope.rb:4: warning: already initialized constant HasScope::ALLOWED_TYPES
App 31344 output: .../gems/has_scope-0.7.2/lib/has_scope.rb:4: warning: previous definition of ALLOWED_TYPES was here
Any clues?
has_scope 0.7.2, Rails app 5.1.5
Thank you!
rafaelfranca commented
This seems related to your application. Theses constants are not being initialized twice in the application. Make sure you are not calling load 'has_scope '
in your app, or that another gem is doing that.
adolfopeccin commented
I'm installing via Gemfile and I think it's DBHero loading it from require_dependency