comparison app/helpers/pastes_helper.rb @ 331:7c7b7906ebd9

Some more coding style.
author edogawaconan <me@myconan.net>
date Mon, 14 Apr 2014 17:21:16 +0900
parents 500c09718fd7
children 2ddd61aca2c8
comparison
equal deleted inserted replaced
330:96631607785f 331:7c7b7906ebd9
1 module PastesHelper 1 module PastesHelper
2 def print_txt_create_result 2 def print_txt_create_result
3 unless @paste.errors.any? 3 if @paste.errors.any?
4 "Failed"
5 else
4 url = paste_path @paste, :only_path => false 6 url = paste_path @paste, :only_path => false
5 if @fresh 7 if @fresh
6 "#{url} (key: #{@paste.key})" 8 "#{url} (key: #{@paste.key})"
7 else 9 else
8 url 10 url
9 end 11 end
10 else
11 'Failed'
12 end 12 end
13 end 13 end
14 end 14 end