Two colons before a class name in ruby

When you see two colons before a constant reference in Ruby, like ::User that code is saying “look for this constant” defined without any namespace or nesting.

It will not look up Admin::User even if you make a reference to ::User from within the admin namespace.

Further reading: