Sha256: 0339667fe8dd1bb59341023482216de71ae8ee6de6d3a78f3fdd0eebca237794
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
require 'dm-salesforce-adapter/property' module DataMapper module Adapters class SalesforceAdapter < DataObjectsAdapter module Property class Serial < ::DataMapper::Property::String accept_options :serial serial true length 15 def typecast(value) value.to_str[0..14] unless value.nil? || value.empty? end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
martinemde-dm-salesforce-adapter-1.1.0 | lib/dm-salesforce-adapter/property/serial.rb |