Skip to content

Use features in custom controllers

Andreas Dausenau edited this page Jun 28, 2022 · 1 revision

Use features in custom controllers

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.

Clone this wiki locally