Sha256: 87aa89c9e20a06c110dd66e64cd0b1b27813bb6cf8a9aa6fd904cf581213fbba
Contents?: true
Size: 435 Bytes
Versions: 39
Compression:
Stored size: 435 Bytes
Contents
# This class provides a wrapper for caren's server side errors. class Caren::Error attr_accessor :category, :message, :attributes def initialize category, message="", attributes={} self.category = category self.message = message self.attributes = attributes end end class Caren::ValidationError < Caren::Error def field attributes[:on] end def to_s "`#{field}` #{message}" end end
Version data entries
39 entries across 39 versions & 1 rubygems