c74b5c21d7
* Feature: Introduce Super Admins - added new devise model for super user - added administrate gem - sample dashboards for users and accounts Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
16 lines
659 B
Ruby
16 lines
659 B
Ruby
# All Administrate controllers inherit from this
|
|
# `Administrate::ApplicationController`, making it the ideal place to put
|
|
# authentication logic or other before_actions.
|
|
#
|
|
# If you want to add pagination or other controller-level concerns,
|
|
# you're free to overwrite the RESTful controller actions.
|
|
class SuperAdmin::ApplicationController < Administrate::ApplicationController
|
|
# authenticiation done via devise : SuperAdmin Model
|
|
before_action :authenticate_super_admin!
|
|
|
|
# Override this value to specify the number of elements to display at a time
|
|
# on index pages. Defaults to 20.
|
|
# def records_per_page
|
|
# params[:per_page] || 20
|
|
# end
|
|
end
|