spec/dummy/app/controllers/posts_controller.rb in draper-1.0.0 vs spec/dummy/app/controllers/posts_controller.rb in draper-1.1.0
- old
+ new
@@ -6,6 +6,13 @@
def mail
post = Post.find(params[:id])
email = PostMailer.decorated_email(post).deliver
render text: email.body
end
+
+ private
+
+ def goodnight_moon
+ "Goodnight, moon!"
+ end
+ helper_method :goodnight_moon
end