Fix bug apply active record criteria
Merge branch 'develop' of github.com:matryoshka-model/rest-wrapper into develop