Sha256: 76179af593b673f4cbdf3e90a00b6bae48f37a06d8d57ca69e722cab676d816a
Contents?: true
Size: 395 Bytes
Versions: 70
Compression:
Stored size: 395 Bytes
Contents
module IshManager module ApplicationHelper def pretty_date input return input.strftime("%Y-%m-%d") end def pp_errors errors return errors end def user_path user if user.class == 'String' "/users/#{user}" elsif user.class == User "/users/#{user.id}" elsif user.class == NilClass "/users" end end end end
Version data entries
70 entries across 70 versions & 1 rubygems