app/models/pbw/item_container.rb in pbw-0.0.7 vs app/models/pbw/item_container.rb in pbw-0.0.8
- old
+ new
@@ -81,10 +81,10 @@
return false unless save
if to.class.ancestors.include?(Area)
container = find_or_create_for_area(to, self.item, quantity)
elsif to.class.ancestors.include?(Token)
container = find_or_create_for_token(to, self.item, quantity)
- elsif to.class.ancestors.include?(User)
+ elsif to.class.ancestors.include?(Pbw::Engine.user_class)
container = find_or_create_for_user(to, self.item, quantity)
else
return false
end
unless container