Permalink
Browse files

fix uninitialized constant warning in CanCan::Rule#model_adapter

  • Loading branch information...
1 parent 9eebeb2 commit 80ceaf8e17b67308c4de2957fd6ab60fffdc3e29 @soopa soopa committed Oct 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cancan/rule.rb
View
@@ -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

0 comments on commit 80ceaf8

Please sign in to comment.