lib/rbbt/tsv/accessor.rb in rbbt-util-5.14.36 vs lib/rbbt/tsv/accessor.rb in rbbt-util-5.14.37
- old
+ new
@@ -25,10 +25,14 @@
end
@entity_options
end
def entity_options=(options)
- @entity_options = options
+ @entity_options = options || {}
+ if namespace
+ @entity_options[:organism] ||= namespace
+ @entity_options[:namespace] ||= namespace
+ end
@entity_templates = nil
end
def entity_templates