Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix uninitialized constant warning in CanCan::Rule#model_adapter

  • Loading branch information...
commit 80ceaf8e17b67308c4de2957fd6ab60fffdc3e29 1 parent 9eebeb2
@soopa soopa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cancan/rule.rb
View
2  lib/cancan/rule.rb
@@ -136,7 +136,7 @@ def call_block_with_all(action, subject, extra_args)
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
Please sign in to comment.
Something went wrong with that request. Please try again.