lib/miau.rb.bak in miau-1.1.7 vs lib/miau.rb.bak in miau-1.1.8
- old
+ new
@@ -42,14 +42,12 @@
def authorize_controller!
controller = params[:controller].to_sym
action = params[:action].to_sym
policy = PolicyStorage.instance.find_or_create_policy(controller)
-p 22222
unless policy
-p 11111111111111
-# msg = "undefined class #{controller.capitalize}Policy"
-# raise NotDefinedError, msg
+ msg = "missing class #{controller.capitalize}Policy"
+ raise NotDefinedError, msg
end
policy.user = miau_user
policy.action = action