Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated the admin filters and dynamic model loading

  • Loading branch information...
commit eea9136c9ac92b79cbccacac4a48ff73bb9618eb 1 parent cf8aa13
@TeckniX authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 Controller/ActiveAdminAppController.php
View
4 Controller/ActiveAdminAppController.php
@@ -15,13 +15,11 @@ function beforeFilter(){
$pluginName = Inflector::camelize(Inflector::singularize($this->request->params['plugin']));
if(!empty($pluginName)){
$this->loadModel($pluginName.".".$modelName);
- $this->set('modelName',$pluginName.".".$modelName);
}else{
$this->loadModel($modelName);
- $this->set('modelName',$modelName);
}
$displayField = $this->{$modelName}->displayField;
- $this->set(compact('adminMenu','displayField'));
+ $this->set(compact('adminMenu','displayField','modelName'));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.