be9/acl9 — pull request #71 by pjungwir (2012-08-08 21:40:13+00:00)
Title: Raise an error if the user passes invalid options to the allow or deny DSL methods

I spent a couple hours trying to figure out why someone else's code was permitting anyone to access the `checkin` action:

access_control do
allow all, :only => [:claim, :claimed]

actions :checkin, :checkout do
allow :admin
allow :owner, :of => :event
end
end

Finally I realized it's because `:only => [:claim, :claimed]` does nothing. It should have been `:to => [:claim, :claimed]`. It'd be nice if the DSL would fail when you pass invalid options. This pull request adds a check to do that.

Please note that I wasn't able to get any tests to run on my machine (I gave up trying after hitting the third dependency issue), so the code is untested.