ActsAs behaviors now can be scoped using a simple attribute even for variable values...
commit1b8764898a5efebfb6d97ef49f9a086f30314d6d
authorbermiferrer <bermiferrer@a2fa5c27-f921-0410-a72c-bf682d381be0>
Wed, 26 Sep 2007 12:04:59 +0000 (26 12:04 +0000)
committerbermiferrer <bermiferrer@a2fa5c27-f921-0410-a72c-bf682d381be0>
Wed, 26 Sep 2007 12:04:59 +0000 (26 12:04 +0000)
tree76ede07517b7c5b28202c43948dc8de481d76229
parent0de6c79a668480fb2e514999117b35ee9311dc19
ActsAs behaviors now can be scoped using a simple attribute even for variable values. The scope will be built using current model values.

var $acts_as = array('nested_set' => array('scope' => 'locale = ?')); // Will restrict the nested set to current AR locale

git-svn-id: http://svn.akelos.org/trunk@374 a2fa5c27-f921-0410-a72c-bf682d381be0
lib/AkActiveRecord.php
lib/AkActiveRecord/AkActsAsList.php
lib/AkActiveRecord/AkActsAsNestedSet.php
lib/AkActiveRecord/AkActsAsTree.php
test/fixtures/app/installers/location_installer.php
test/fixtures/app/models/location.php
test/unit/lib/AkActiveRecord/AkActsAsNestedSet.php
test/unit/lib/AkActiveRecord/AkActsAsTree.php