spec/dummy/app/controllers/posts_controller.rb in draper-1.1.0 vs spec/dummy/app/controllers/posts_controller.rb in draper-1.2.0

- old
+ new

@@ -1,7 +1,9 @@ class PostsController < ApplicationController + decorates_assigned :post + def show - @post = Post.find(params[:id]).decorate + @post = Post.find(params[:id]) end def mail post = Post.find(params[:id]) email = PostMailer.decorated_email(post).deliver