Ruby on Rails Monday, April 25, 2016

The simplest way to trigger this warning (it's not Rails-related BTW) is this:

$ irb
irb(main):001:0> class Foo
irb(main):002:1> end
=> nil
irb(main):003:0> Foo::Array.new
(irb):3: warning: toplevel constant Array referenced by Foo::Array
=> []

So it seems that in addition  to ActiveRecord::Base:Configuration there's another class called Configuration defined at the top level.

Did you define this class? If not, does any of your dependencies define this class?

Best regards
--
Greg Navis
I help small tech companies to scale Heroku-hosted Rails apps.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAA6WWt-saY0W%3D5orpA4%2BOvz_ZTcLHwVYtRrjtSSDvPdVcVrgyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment