Sha256: 64adc748dc1e6591e8589bb5623d7cd375c3b36e232b0969b8583d857487a8e4
Contents?: true
Size: 415 Bytes
Versions: 29
Compression:
Stored size: 415 Bytes
Contents
module ActiveScaffold::DataStructures # Wrapper for error strings so that they may be exported using to_xxx class ErrorMessage def initialize(error) @error = error end def public_attributes {:error => @error} end def to_xml public_attributes.to_xml(:root => 'errors') end delegate :to_yaml, :to => :public_attributes def to_s @error end end end
Version data entries
29 entries across 29 versions & 1 rubygems