Adding a persisted? method for when using ApiModel with Rails