Skip to content
Browse files

Use post generator to create example post when installing.

  • Loading branch information...
1 parent 74a8372 commit f715c52e24e90517215ab7fa5176ac3aaeeb25dd @nathanaelkane nathanaelkane committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/generators/postmarkdown/install_generator.rb
4 lib/generators/postmarkdown/install_generator.rb
@@ -9,9 +9,7 @@ def create_directory
def generate_example_post
- unless options.skip_example?
- template 'example-post.markdown', "app/posts/#{'%Y-%m-%d')}-example-post.markdown"
- end
+ generate 'postmarkdown:post', 'example-post' unless options.skip_example?
def add_routes

0 comments on commit f715c52

Please sign in to comment.
Something went wrong with that request. Please try again.