moved update gists logic to post model