Re: Mountable Engines and ApplicationControllers

Piotr Sarnacki
Tue, 08 May 2012 17:21:11 -0000

On Fri, May 4, 2012 at 11:24 PM, Scott Johnson <7.scott.j@gmail.com>
wrote:

> So my questions for the group are, does this seem like a reasonable
> solution or am I missing something like, this is why ActionController::Base
> exists and why don''t you just open class it in the load path for
the same
> effect?
>

It looks like a reasonable solution for your case, but I don''t think
that
it would be good to make it default in Rails.

What you could do to make it simpler is creating module as you proposed,
but don''t require it on initialization, you could simply require it in
ApplicationController files and include there.