Re: Mountable Engines and ApplicationControllers

Maurizio Casimirri
Thu, 10 May 2012 08:14:35 -0000

Il giorno 10/mag/2012, alle ore 09.28, Nick Sutterer ha scritto:

>
>
> On Wednesday, May 9, 2012 12:36:26 AM UTC+2, Ryan Bigg wrote:
> I''ve been developing engines (Forem:
https://github.com/radar/forem and Spree: https://github.com/spree/spree) for a
while, and I''ve always chosen to make the engine''s
ApplicationController inherit from the application''s
ApplicationController for the reasons you point out: you get access to all the
typical methods like current_user and so on from the application''s
ApplicationController.

Ok now i know why i can''t delete application_controller.rb from my
applications with Spree. It was a bit confusing since I don''t use It.