Class: Decidim::Posts::Admin::ApplicationController

Inherits:
Admin::Components::BaseController
  • Object
show all
Defined in:
app/controllers/decidim/posts/admin/application_controller.rb

Overview

This controller is the abstract class from which all other controllers of this engine inherit.

Note that it inherits from ‘Decidim::Admin::Components::BaseController`, which override its layout and provide all kinds of useful methods.

Direct Known Subclasses

PostsController

Instance Method Summary collapse

Instance Method Details

#permission_class_chainObject



12
13
14
# File 'app/controllers/decidim/posts/admin/application_controller.rb', line 12

def permission_class_chain
  [::Decidim::Posts::Admin::Permissions] + super
end

#user_has_no_permission_pathObject



20
21
22
# File 'app/controllers/decidim/posts/admin/application_controller.rb', line 20

def user_has_no_permission_path
  decidim.root_path
end

#user_not_authorized_pathObject



16
17
18
# File 'app/controllers/decidim/posts/admin/application_controller.rb', line 16

def user_not_authorized_path
  decidim.root_path
end