Rails Plugins - Extending Rails Beyond the Core Question

The book says “You can also use init.rb to ensure that this module is mixed in to all your controllers”

vendor/plugins/breadcrumbs/init.rb

ActionController::Base.send :include, Breadcrumbs

What does the Base.send mean? TIA.

ActionController::Base is the base controller class. send simply sends a message, and in this case it's sending the include message with the parameter Breadcrumbs.

It's the same as if you did

class ActionController::Base   include Breadcrumbs end

You have to use send or the class form because include is a private method.

Pat