Please sign in to comment.
Easily add the ability to use model methods as rules.
Adds one public method to set a model name or array of models that will be checked. Slightly modifies the _execute() method to check for rules in models before continuing the hunt. Originally I added a simple public method to Loader() which would return the protected $_ci_models array to see if it was already loaded but thought just trying to load the model was less intrusive as it will just return the model if it is or load and it if it isn't.
- Loading branch information...
Showing with 45 additions and 3 deletions.