app/controllers/admin/application_controller.rb
# annoyingly duplicated logic from ::ApplicationController, 
# which we can't seem to access
annoyingly duplicated logic from ::ApplicationController,
which we can't seem to access
annoyingly duplicated logic from :: ApplicationController which we can ' t seem to access
def authenticate_admin
      return if superadmin?
      flash[:error] = t('authorize.superadmin')
      redirect_to root_path
      false
    end
def authenticate_admin return if superadmin? flash [ :error ] = t ( 'authorize.superadmin' ) redirect_to root_path false end
annoyingly duplicated logic from ::ApplicationController,
which we can't seem to access
annoyingly duplicated logic from :: ApplicationController which we can ' t seem to access