Basically I want to load this:
require "active_record/railtie"
require "active_resource/railtie"
require "action_mailer/railtie"
and not load action_controller
because in this particular situation I have no use for it.
Looking at the code in Rails' master, I can see:
# For now, action_controller must always be present with
# rails, so let's make sure that it gets required before
# here. This is needed for correctly setting up the middleware.
# In the future, this might become an optional require.
require "action_controller/railtie"
... so I was wondering: Is it possible to load Rails with only active_record
, active_resource
and action_mailer
, or do I always have to load action_controller
?