Browse Source

Fix unreachable code in Model mergeVars

Squashed commit of the following:

commit c8326460a46e563816ebfe7d9a13c475c2f0be63
Author: Fitorec <chanerec@gmail.com>
Date:   Tue Dec 6 18:04:11 2011 -0600

    add a space after the comma in the $merge array

commit 22ad6cdca503a6bbd68851acb0458bb7ab3388f0
Author: Fitorec <chanerec@gmail.com>
Date:   Tue Dec 6 03:31:54 2011 -0600

    removing the condition and adding actsAs to the default list of merged keys.

commit afa4dd0dee55c8b0d9533b8dde3a65aae3e08a34
Author: Fitorec <chanerec@gmail.com>
Date:   Mon Dec 5 12:10:32 2011 -0600

    Solving the small defect in the array of behaviors(actsAs)

Signed-off-by: mark_story <mark@mark-story.com>
Fitorec 14 years ago
parent
commit
e7c913acba
1 changed files with 1 additions and 4 deletions
  1. 1 4
      lib/Cake/Model/Model.php

+ 1 - 4
lib/Cake/Model/Model.php

@@ -672,10 +672,7 @@ class Model extends Object {
 		}
 
 		if (is_subclass_of($this, 'AppModel')) {
-			$merge = array('findMethods');
-			if ($this->actsAs !== null || $this->actsAs !== false) {
-				$merge[] = 'actsAs';
-			}
+			$merge = array('actsAs', 'findMethods');
 			$parentClass = get_parent_class($this);
 			if ($parentClass !== 'AppModel') {
 				$this->_mergeVars($merge, $parentClass);