Sha256: e49c761ad57a02ff1465f47fd093de195a22addaa15528de9c1959a3b64e0d82
Contents?: true
Size: 354 Bytes
Versions: 21
Compression:
Stored size: 354 Bytes
Contents
if defined?(ActiveSupport::SafeBuffer) SafeBuffer = ActiveSupport::SafeBuffer else require 'padrino/safe_buffer' SafeBuffer = Padrino::SafeBuffer class String def html_safe SafeBuffer.new(self) end end class Object def html_safe? false end end class Numeric def html_safe? true end end end
Version data entries
21 entries across 21 versions & 2 rubygems