lib/eco/api/common/people/default_parsers.rb in eco-helpers-2.6.4 vs lib/eco/api/common/people/default_parsers.rb in eco-helpers-2.7.0
- old
+ new
@@ -1,10 +1,9 @@
module Eco
module API
module Common
module People
-
# Class to define a set of default attribute parsers
class DefaultParsers < PersonParser
autoloads_children_of "Eco::API::Common::Loaders::Parser"
autoload_namespace "Eco::API::Common::People::DefaultParsers"
@@ -14,21 +13,11 @@
end
private
def define_defaults
- # Select Options
- select_hashes = @schema.fields.map do |fld|
- if fld.type == "select"
- raise "The schema selection field '#{fld.name}' is missing selection options." unless fld.options && !fld.options.empty?
- options_hash = fld.options.map { |v| [v.downcase.strip, v] }.to_h
- [fld.alt_id, options_hash]
- end
- end.compact.to_h
-
- SelectParser.new(self, select_hashes: select_hashes).process
+ # SelectParser.new(self, select_hashes: select_tables).process
end
-
end
end
end
end
end