# Passing Current\_User from main app to engine

**URL:** <https://www.ruby-forum.com/t/passing-current-user-from-main-app-to-engine/240940>\
**Category:** Engines\
**Created:** [May 7, 2014, 4:48pm UTC](https://www.ruby-forum.com/t/passing-current-user-from-main-app-to-engine/240940 "2014-05-07T16:48:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [May 7, 2014, 4:48pm UTC](https://www.ruby-forum.com/t/passing-current-user-from-main-app-to-engine/240940/1 "2014-05-07T16:48:26Z")

</div>

So i have a general question about passing parameters from the main  
application to the engine . So is it a correct approach to inherit the  
ApplicationController of the main application in the engine to make use  
of the current\_user. Since current\_user is a strong Rails convention can  
we make use of it this way or do we need to have call back functions  
from the engine to the main application in order for us to use it ?
