Mercurial > zeropaste
diff app/helpers/pastes_helper.rb @ 437:d31fe32da7a0
Finish updating to rails 5
author | nanaya <me@myconan.net> |
---|---|
date | Sat, 02 Jul 2016 17:04:25 +0900 |
parents | 68eb23b52864 |
children | e8f159807413 |
line wrap: on
line diff
--- a/app/helpers/pastes_helper.rb Mon Jun 13 15:07:38 2016 +0900 +++ b/app/helpers/pastes_helper.rb Sat Jul 02 17:04:25 2016 +0900 @@ -3,7 +3,7 @@ if @paste.errors.any? "Failed" else - url = paste_path @paste, :only_path => false + url = with_url paste_path(@paste) if @fresh "#{url} (key: #{@paste.key})" else