Skip to content

Commit

Permalink
Using embeddable instead of duplicating efforts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Aug 16, 2009
1 parent 56e9e95 commit d4325af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongomapper/key.rb
Expand Up @@ -25,7 +25,7 @@ def native?
end

def embedded_document?
type.ancestors.include?(EmbeddedDocument) && !type.ancestors.include?(Document)
type.respond_to?(:embeddable?) && type.embeddable?
end

def get(value)
Expand Down

0 comments on commit d4325af

Please sign in to comment.