Changed to_key mehtod to make it ActiveModel compatible