public function modelAbilities($name, $delimiter = '.')
    {
        $name = is_string($name) ? $name : class_basename($name);

        // create the model ability crud
        foreach ($this->crud as $ability) {
            $this->model_crud_abilities[$ability] = strtolower($name.$delimiter.$ability);
        }

        return $this;
    }
public function modelAbilities($name, $delimiter = '.')
    {
        $name = is_string($name) ? $name : class_basename($name);

        // create the model ability crud
        foreach ($this->crud as $ability) {
            $this->model_crud_abilities[$ability] = strtolower($name.$delimiter.$ability);
        }

        return $this;
    }
public function modelAbilities ( $ name , $ delimiter = '.' ) { $ name = is_string ( $ name ) ? $ name : class_basename ( $ name ) ; // create the model ability crud foreach ( $ this -> crud as $ ability ) { $ this -> model_crud_abilities [ $ ability ] = strtolower ( $ name . $ delimiter . $ ability ) ; } return $ this ; }
Generates an ability for each CRUD element
ex. ClassName.index, ClassName.create, ..etc.

@param string       $delimiter
@param string|Model $name

@return $this
Generates an ability for each CRUD element ex . ClassName . index ClassName . create .. etc .