template/app/controllers/application_controller.rb
# Define if the current_user is allowed to CRUD.
Define if the current_user is allowed to CRUD.
Define if the current_user is allowed to CRUD .
def is_admin?
    if current_user
      return true if current_user.is_admin?
    end
  end
def is_admin? if current_user return true if current_user . is_admin? end end
Define if the current_user is allowed to CRUD.
Define if the current_user is allowed to CRUD .