Sha256: f851157b5ebbf45d29bbc7ab13553006b87a793745dbd5e3fd0349ae6581b243
Contents?: true
Size: 551 Bytes
Versions: 2
Compression:
Stored size: 551 Bytes
Contents
=begin #nodoc# If properties are allocated on class-level, they can be preinitialized using this method. This is disabled for now, because it does not seem nessesary =end def preallocate_class_properties o_class # :nodoc: p= get_class_properties( o_class )['properties'] unless p.nil? || p.blank? predefined_attributes = p.map do | property | [ property['name'] , case property['type'] when 'LINKMAP' Array.new when 'STRING' '' else nil end ] end.to_h else {} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active-orient-0.80 | lib/rest_disabled.rb |
active-orient-0.79 | lib/rest_disabled.rb |