<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -42,12 +42,12 @@ module TotallyRestfulAuthorization
     end
     
     def object_params
-      params[object_name] || {}
+      params[object_name]
     end
   
     def permission_granted?(_object)
       if _object.respond_to? actionable_method.to_sym
-        _object.send(actionable_method, current_user, object_params)
+        _object.send(actionable_method, current_user, object_params || {})
       else
         true
       end</diff>
      <filename>lib/totally_restful_authorization/permission_check.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ae21df07cd0e0afc346a398a88cb460fe2593f67</id>
    </parent>
  </parents>
  <author>
    <name>Robin Mehner</name>
    <email>robin@coding-robin.de</email>
  </author>
  <url>http://github.com/langalex/totally-restful-authorization/commit/911b5d2ef6c983da5114ed856ab1572064551dd4</url>
  <id>911b5d2ef6c983da5114ed856ab1572064551dd4</id>
  <committed-date>2009-09-16T13:02:32-07:00</committed-date>
  <authored-date>2009-09-16T13:02:32-07:00</authored-date>
  <message>check for nil values before send instead of in object_params to keep compatible with resource_controller</message>
  <tree>ec4d803d61c9da45e84b6ae58813abccf6e257b9</tree>
  <committer>
    <name>Robin Mehner</name>
    <email>robin@coding-robin.de</email>
  </committer>
</commit>
