Skip to content

Commit

Permalink
Added recognition of classes that proxy to oclass in schema definition.
Browse files Browse the repository at this point in the history
  • Loading branch information
aemadrid committed Jan 27, 2011
1 parent 7bf0cb2 commit e2bd29a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/orientdb/oclass.rb
Expand Up @@ -22,6 +22,7 @@ def add(property_name, type, options = {})
return false
end

type = type.oclass if type.respond_to?(:oclass)
case type
when SchemaType
prop = create_property property_name, type
Expand Down

0 comments on commit e2bd29a

Please sign in to comment.