app/controllers/pulitzer/posts_controller.rb in pulitzer-0.1.2 vs app/controllers/pulitzer/posts_controller.rb in pulitzer-0.1.3
- old
+ new
@@ -11,10 +11,10 @@
render partial: 'new', locals: { post: @post }
end
def create
@post = Pulitzer::Post.create(post_params)
- Pulitzer::SetupPostElements.new(@post).call if @post
+ Pulitzer::CreatePostContentElements.new(@post).call if @post
render partial: 'show_wrapper', locals: { post: @post }
end
def show
render partial: 'show', locals: { post: @post }