Sha256: a5b0f94139e5bd217fa71531e2c5f9825c8be32d01d9ad453c723dcbd18b7df2
Contents?: true
Size: 492 Bytes
Versions: 11
Compression:
Stored size: 492 Bytes
Contents
require 'active_support/core_ext/string/output_safety' require 'action_view' module BetterHtml class InterpolatorError < RuntimeError; end class DontInterpolateHere < InterpolatorError; end class UnsafeHtmlError < InterpolatorError; end class HtmlError < RuntimeError; end class Errors delegate :[], :each, :size, :first, :empty?, :any?, :present?, to: :@errors def initialize @errors = [] end def add(error) @errors << error end end end
Version data entries
11 entries across 11 versions & 1 rubygems