Sha256: 4200b0dc3a1ecc64852584622b626eb5cb7220fbd4821800da5878980784992a

Contents?: true

Size: 283 Bytes

Versions: 4

Compression:

Stored size: 283 Bytes

Contents

# encoding: UTF-8

module Spontaneous::Field
  class String < Base
    has_editor

    def preprocess(value)
      Spontaneous::Utils::SmartQuotes.smarten(value.to_s)
    end

    def generate_html(value)
      escape_html(value)
    end

    self.register :string, :title
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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