Mercurial > zeropaste
diff app/controllers/pastes_controller.rb @ 181:500c09718fd7
Added fresh paste marker.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Fri, 01 Feb 2013 22:58:53 +0700 |
parents | db5164ff73a9 |
children | fc234f8cf3d9 |
line wrap: on
line diff
--- a/app/controllers/pastes_controller.rb Fri Feb 01 22:57:49 2013 +0700 +++ b/app/controllers/pastes_controller.rb Fri Feb 01 22:58:53 2013 +0700 @@ -52,6 +52,7 @@ begin respond_to do |format| if @paste.save + @fresh = true format.html { redirect_to @paste, :notice => 'Paste was successfully created.' } format.json { render :json => @paste, :status => :created, :location => @paste } else