fix uninitialized constant warning in CanCan::Rule#model_adapter

This commit is contained in:
soopa 2011-10-14 20:06:43 -05:00
parent 9eebeb2155
commit 80ceaf8e17

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