view config/initializers/ext_string.rb @ 148:c57e51af4692

Update with latest rails Not sure why "rails" is specifically required now.
author nanaya <me@nanaya.pro>
date Sat, 13 Jan 2018 03:16:17 +0900
parents 61414d0a367b
children
line wrap: on
line source

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