-
Notifications
You must be signed in to change notification settings - Fork 0
Use features in custom controllers
Andreas Dausenau edited this page Jun 28, 2022
·
1 revision
If you use any generator of ez-on-rails, the controllers inherit from the ez-on-rails controllers out of the box. But if you implement your own custom controllers but also want to use features like e.g. the permission system, you just need to inherit from EzOnRails::ApplicatioController.
class SomeController < EzOnRails::ApplicationController
...
end
The EzOnRails::ApplicationController inherits from your base applications ApplicationController. Hence you can use the features of your base application, too.