Re: [Rails] Re: "class Admin::UsersController < ApplicationController". What does the double colon do here?

2014-03-25 Thread Christian Kruse
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi, On 25.03.2014 09:53, Konstantinos Rousis wrote: > class Admin::UsersController ... end > > is equivalent to > > module Admin class UsersController ... end end Only partly right. There is a slight difference. As long as the module (or namespa

[Rails] Re: "class Admin::UsersController < ApplicationController". What does the double colon do here?

2014-03-25 Thread Konstantinos Rousis
This is one of the ways to provide namespacing in Ruby and avoid same-name conflicts (e.g. with user code or other gems). class Admin::UsersController ... end is equivalent to module Admin class UsersController ... end end On Monday, 24 March 2014 14:43:24 UTC+1, Brandon wrote: > > I saw