Closed bigardone closed 11 years ago
+1 getting this as well.
Okay, I think I've determined the cause of this issue.
And it's not necessarily a bug...
EXAMPLE:
If your columns in your superclass table are doable_id
and doable_type
then your superclass model should look like:
acts_as_superclass(:as => :doable)
Hi! I'm trying to integrate acts_as_relation with Devise and CanCan, so I have the following models:
Everything regarding acts_as_relation works fine, until I define de abilities in my bbility.rb
My user.specific returns nil, instead of a UsuarioBanco instance... I've been using your gem in another projects, not using it with Devise models, and this worked fine. Do I have anything wrong? Thanks in advance!