fix uninitialized constant warning in CanCan::Rule#model_adapter
This commit is contained in:
parent
9eebeb2155
commit
80ceaf8e17
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user