Method: Virtus::PendingAttribute#determine_type

Defined in:
lib/virtus/attribute/builder.rb

#determine_typeObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



26
27
28
29
30
31
32
# File 'lib/virtus/attribute/builder.rb', line 26

def determine_type
  if type.include?('::')
    Virtus.constantize(type)
  else
    Object.const_get(type)
  end
end