reduced duplication in friendships controller
Merge pull request #47 from edatrix/code-climate-refactor

reduced duplication in friendships controller