Skip to content

Commit b6a3b28

Browse files
committed
Don't define vocabulary method for 'term', in addition to 'proeprty' and 'hash'.
1 parent aa14e87 commit b6a3b28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rdf/vocabulary.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def property(*args)
205205
@ontology ||= prop if name.to_s.empty?
206206

207207
# Define an accessor, except for problematic properties
208-
(class << self; self; end).send(:define_method, name) { prop } unless %w(property hash).include?(name.to_s)
208+
(class << self; self; end).send(:define_method, name) { prop } unless %w(property term hash).include?(name.to_s)
209209
else
210210
# Define the term without a name
211211
# Term attributes passed in a block for lazy evaluation. This helps to avoid load-time circular dependencies

0 commit comments

Comments
 (0)