james2m / canard

Makes role based authorization in Rails really simple. Wraps CanCan and RoleModel up with a smattering of syntactic sugar, some generators and scopes.
MIT License
125 stars 28 forks source link

Mongoid adapter #6

Closed dwbutler closed 12 years ago

dwbutler commented 12 years ago

Added a Mongoid adapter. This adds the same scopes as the ActiveRecord adapter. Added tests and everything passes. Like ActiveRecord, the Mongoid adapter auto-installs using Railties as long as Mongoid is installed.

travisbot commented 12 years ago

This pull request fails (merged 43ab2111 into 1f2fbe46).

travisbot commented 12 years ago

This pull request fails (merged e276e3d6 into 1f2fbe46).

james2m commented 12 years ago

@dwbutler Travis is complaining so I'll have a look at that before releasing. Thanks for the contribution.

dwbutler commented 12 years ago

Hm, I only tested in Ruby 1.9.3. I'll take another look tomorrow and test against other Rubies.

dwbutler commented 12 years ago

Looks like the other Rubies didn't like the debugger gem. That should be easy enough to fix.