Sha256: f552646680b48faa0d475aa0d9ef544a0cd7300fb3419360eae76b221fde23e8
Contents?: true
Size: 423 Bytes
Versions: 239
Compression:
Stored size: 423 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 def to_yaml public_attributes.to_yaml end def to_s @error end end end
Version data entries
239 entries across 239 versions & 9 rubygems