kristianmandrup / cantango

CanCan extension with role oriented permission management, rules caching and much more
MIT License
404 stars 45 forks source link

Fix add_role_system trying to merge wrong object #22

Closed pdf closed 12 years ago

pdf commented 12 years ago

add_role_system tries to merge role_system, rather than it's argument role_system_hash, which predictably results in:

can't convert Symbol into Hash gems/cantango-0.9.4.7/lib/cantango/configuration/roles.rb:22:in `merge!'

kristianmandrup commented 12 years ago

Thanks for the fix.

I've been trying to do a complete rewrite of cantango. Check out cantango-permits, It is more stable, better tested (more specs) etc. However cantango-permits lacks caching and a permit store for now.