refactor generate method in order to make just one query
Merge branch 'master' of https://github.com/alex-quiterio/monologue

Conflicts:
	app/models/monologue/posts_revision.rb