nathanl / authority

*CURRENTLY UNMAINTAINED*. Authority helps you authorize actions in your Rails app. It's ORM-neutral and has very little fancy syntax; just group your models under one or more Authorizer classes and write plain Ruby methods on them.
MIT License
1.21k stars 67 forks source link

Fix failing spec. Proc.bind was removed in Rails 4.1. #78

Closed gergoerdosi closed 10 years ago

gergoerdosi commented 10 years ago

Build fails with:

/home/travis/build/nathanl/authority/spec/authority/controller_spec.rb:4:in `require': cannot load such file -- active_support/core_ext/proc (LoadError)

In issue #56 Proc.bind was replaced with instance_exec, but the controller spec still requires that Proc class. That file was removed in Rails 4.1 which raises an error now.

nathanl commented 10 years ago

Great, thanks! Little patches like this are so helpful in reducing the burden of maintaining a gem. I really appreciate it!

nathanl commented 10 years ago

See https://twitter.com/sleeplessgeek/status/457143667229466624 :thumbsup: