diff options
author | Ted Trask <ttrask01@yahoo.com> | 2010-11-15 13:09:14 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2010-11-15 13:09:14 +0000 |
commit | 8a671177667ca794592155a3d8d7687f5d02496f (patch) | |
tree | 7936d449697d3e2c317b41695bdb1b61a6306fb1 | |
parent | 6e237703b706ce9e217c2fdaebb968f3ca425444 (diff) | |
download | acf-core-8a671177667ca794592155a3d8d7687f5d02496f.tar.bz2 acf-core-8a671177667ca794592155a3d8d7687f5d02496f.tar.xz |
Fixed bug in loading controllers to determine available actions.
-rw-r--r-- | lib/roles.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/roles.lua b/lib/roles.lua index 6c5b8a2..c2f54a3 100644 --- a/lib/roles.lua +++ b/lib/roles.lua @@ -70,10 +70,13 @@ get_controllers_func = function(self,controller_info) -- but, haven't figured that out yet local PATH = package.path local loaded = package.loaded[controller_info.name] + package.loaded[controller_info.name] = nil + _G[controller_info.name] = nil package.path = controller_info.path .. "?.lua;" .. package.path temp = require (controller_info.name) package.path = PATH package.loaded[controller_info.name] = loaded + _G[controller_info.name] = loaded temp1 = {} for a,b in pairs(temp) do local c = string.match(a,"^mvc") or string.match(a,"^_") |