Sha256: 99f2de8b2cfeaa8735c615e6f6f78c86e3de1d21809c58a081388ed57f8c4bb0

Contents?: true

Size: 717 Bytes

Versions: 27

Compression:

Stored size: 717 Bytes

Contents

module Eco
  module API
    class MicroCases
      # Sets all the core details, but the supervisor.
      # @note `supervisor_id` requires a special treatment, and therefore is always excluded.
      # @param entry [PersonEntry] the input entry with the data we should set on person.
      # @param person [Ecoportal::API::V1::Person] the person we want to update, carrying the changes to be done.
      # @param options [Hash] the options
      def set_core(entry, person, options)
        return if options.dig(:exclude, :core) && !person.new?

        entry.set_core(person, exclude: micro.core_excluded(person, options))
        micro.fix_filter_tags(person, options)
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
eco-helpers-3.0.21 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.20 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.19 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.18 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.17 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.16 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.15 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.14 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.13 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.12 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.11 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.10 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.9 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.8 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.7 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.6 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.5 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.4 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.3 lib/eco/api/microcases/set_core.rb
eco-helpers-3.0.2 lib/eco/api/microcases/set_core.rb