Last active
November 12, 2017 13:55
-
-
Save domagude/5c5437c386712b331282e01217327a64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
def contact_user_partial_path | |
if user_signed_in? | |
@post.user.id != current_user.id ? 'posts/show/contact_user' : 'shared/empty_partial' | |
else | |
'posts/show/login_required' | |
end | |
end | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment