Created
November 5, 2017 13:15
-
-
Save domagude/9f03b8271ab7d0367f80275248f2113a 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 no_posts_partial_path(posts) | |
posts.empty? ? 'posts/shared/no_posts' : 'shared/empty_partial' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment