Merge pull request #492 from soopa/master

Fix "uninitialized constant CanCan::Rule::ModelAdapters"
This commit is contained in:
Ryan Bates 2012-05-11 08:51:50 -07:00
commit 7f4f469e58

View File

@ -136,7 +136,7 @@ module CanCan
end
def model_adapter(subject)
ModelAdapters::AbstractAdapter.adapter_class(subject_class?(subject) ? subject : subject.class)
CanCan::ModelAdapters::AbstractAdapter.adapter_class(subject_class?(subject) ? subject : subject.class)
end
end
end