Question on modules

What’s the proper syntax for including a module in a controller?

example:

include SomeSystem
class ApplicationController < ActionController::Base

end

does it go before or after the class definition ? and do I need some
quotes around it ?

TIA
Stuart

What’s the proper syntax for including a module in a controller?
does it go before or after the class definition ?

The controller is the class. So any included module goes within the
class definition.

and do I need some quotes around it ?

You include a name, e.g. Foo. Foo would be a legal name, visible in
your scope. So no, you don’t quote that, you are in fact passing Foo by
reference (the name contains a reference).

There are some special cases - e.g. ActionController.helper - where you
would perform a sort of inclusion in which the module name would be
quoted. But you asked about the basic Class.include form, so no.

-Alder

require_dependency “acl_system”

class ApplicationController < ActionController::Base
include ACLSystem
model :user
end

((taken from acl system on wiki.rubyonrails.com))
any good?