Adding before_action statement and new methods in Application controller using Rails Engine

Hi,

Developing Rails Engine. Using Rails Engine, I have to include new
methods and to add before_action statement in Application controller of
app without in any changes in application level. Required to make
changes at plugin level only. Please provide me sample code for this
requirement.

Thanks & Regards,
Kumar