Fix "uninitialized constant CanCan::Rule::ModelAdapters" #492

merged 1 commit into from May 11, 2012


None yet

3 participants


Integrating CanCan with Sinatra 1.3 / DataMapper 1.2 / Ruby 1.9.2, I encountered this error. This change fixes it, but I haven't tested with an alternate stack.


The test suite passes against the RVM instance.

cc @ryanb What are you thoughts?


I don't see why adding the CanCan namespace here would fix this, but perhaps there was some naming conflict somewhere causing a problem. Either way this shouldn't break anything - merging in.

@ryanb ryanb merged commit 7f4f469 into ryanb:master May 11, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment