Sha256: 3e899f22c30e3d7d84a8687b6c3d40233e4eea71f824c527668ba0d197a68e55

Contents?: true

Size: 222 Bytes

Versions: 4

Compression:

Stored size: 222 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Field
  class LongString < Base
    has_editor

    def generate_html(value)
      escape_html(value).gsub(/[\r\n]+/, "<br />")
    end

    self.register
  end # LongStringField
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spontaneous-0.2.0.beta4 lib/spontaneous/field/long_string.rb
spontaneous-0.2.0.beta3 lib/spontaneous/field/long_string.rb
spontaneous-0.2.0.beta2 lib/spontaneous/field/long_string.rb
spontaneous-0.2.0.beta1 lib/spontaneous/field/long_string.rb