Sha256: 943225ef66d4b72139d53e1f22421268c778cac8ec0b3c4c1ea1954ddd3c29cf

Contents?: true

Size: 731 Bytes

Versions: 135

Compression:

Stored size: 731 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)
        unless 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
end

Version data entries

135 entries across 135 versions & 1 rubygems

Version Path
eco-helpers-2.7.20 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.19 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.18 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.17 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.16 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.15 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.14 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.13 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.12 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.4 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.2 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.1 lib/eco/api/microcases/set_core.rb
eco-helpers-2.7.0 lib/eco/api/microcases/set_core.rb
eco-helpers-2.6.4 lib/eco/api/microcases/set_core.rb
eco-helpers-2.6.3 lib/eco/api/microcases/set_core.rb
eco-helpers-2.6.2 lib/eco/api/microcases/set_core.rb
eco-helpers-2.6.1 lib/eco/api/microcases/set_core.rb
eco-helpers-2.6.0 lib/eco/api/microcases/set_core.rb
eco-helpers-2.5.10 lib/eco/api/microcases/set_core.rb
eco-helpers-2.5.9 lib/eco/api/microcases/set_core.rb