lib/transcriber/resource/input_path.rb in transcriber-0.0.9 vs lib/transcriber/resource/input_path.rb in transcriber-0.0.10

- old
+ new

@@ -10,10 +10,16 @@ def self.custom_path(options) options.slice(:start_key, :field) end def self.keys_for_path(path) - path.empty? ? [] : path.values.first.to_s.split('.') + return [] if path.empty? + + if path.values.first.kind_of?(Symbol) + [path.values.first] + else + path.values.first.to_s.split('.') + end end end end end