[MODEL] Fixed, that `klass.primary_key` is used instead of `ids` in the ActiveRecord adapter

Closes #11