Mercurial > zeropaste
view app/helpers/pastes_helper.rb @ 460:b1ef80121c79
Update to use correct timestamp datatype
Use sql dump instead of ruby because zone info would be lost otherwise.
author | nanaya <me@nanaya.pro> |
---|---|
date | Mon, 25 Jun 2018 16:53:47 +0900 |
parents | e8f159807413 |
children |
line wrap: on
line source
module PastesHelper def print_txt_create_result if @paste.errors.any? "Failed" else url = with_host paste_path(@paste) if @fresh "#{url} (key: #{@paste.key})" else url end end end def paste_privacy_options { "public" => "0", "private" => "1" } end end