Skip to content

Instantly share code, notes, and snippets.

@domagude
Created November 5, 2017 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/9f03b8271ab7d0367f80275248f2113a to your computer and use it in GitHub Desktop.
Save domagude/9f03b8271ab7d0367f80275248f2113a to your computer and use it in GitHub Desktop.
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