Sha256: 0207a8e469c244c5e8eefefa9b4605be0a773b8d096d7608c4920c02ee340c15
Contents?: true
Size: 576 Bytes
Versions: 4
Compression:
Stored size: 576 Bytes
Contents
require "savon/core_ext/datetime" module Savon module CoreExt module Object # Returns +true+ if the Object is nil, false or empty. Implementation from ActiveSupport. def blank? respond_to?(:empty?) ? empty? : !self end unless defined? blank? # Returns the Object as a SOAP request compliant value. def to_soap_value return to_s unless respond_to? :to_datetime to_datetime.to_soap_value end alias_method :to_soap_value!, :to_soap_value end end end Object.send :include, Savon::CoreExt::Object
Version data entries
4 entries across 4 versions & 1 rubygems