view config/initializers/ext_string.rb @ 147:2b081cc7f383

Try using earlier redis
author nanaya <me@nanaya.pro>
date Thu, 14 Dec 2017 15:05:24 +0900
parents 61414d0a367b
children
line wrap: on
line source

class String
  def printable
    gsub(/[^\n[:print:]]/, '')
  end
end