Skip to content

Commit

Permalink
Fix bug when loading vocabularies that didn't remove previous term de…
Browse files Browse the repository at this point in the history
…finitions from term cache.
  • Loading branch information
gkellogg authored and Tom Johnson committed Aug 17, 2016
1 parent f41ed1e commit b537192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/vocabulary.rb
Expand Up @@ -117,7 +117,7 @@ def property(*args)
name, options = args
options = {label: name.to_s, vocab: self}.merge(options || {})
uri_str = [to_s, name.to_s].join('')
Term.cache.delete(uri_str) # Clear any previous entry
Term.cache.delete(uri_str.to_sym) # Clear any previous entry
prop = Term.intern(uri_str, attributes: options)
props[name.to_sym] = prop
# Define an accessor, except for problematic properties
Expand Down

0 comments on commit b537192

Please sign in to comment.