diff --git a/lib/restful_acl.rb b/lib/restful_acl.rb
index <HASH>..<HASH> 100644
--- a/lib/restful_acl.rb
+++ b/lib/restful_acl.rb
@@ -9,9 +9,9 @@ module RestfulAcl
     
     def has_permission?
       begin
-        # Load the Model based on the controller name passed in
-        klass = params[:controller].classify.constantize
-      
+        # Load the Model based on the controller name
+        klass = self.controller_name.classify.constantize
+
         # Load the object requested if the param[:id] exists
         object = klass.find(params[:id]) unless params[:id].blank?
       
@@ -49,4 +49,4 @@ module RestfulAcl
     end
   
   end
-end
\ No newline at end of file
+end
Refactored the way the controller name is found
Thanks to Devon at kuxuesoft.com!