Module: Ecoportal::API::Common::GraphQL::Model::Diffable::HashDiffNesting

Extended by:
InstanceMethods
Included in:
ClassicDiffService, DiffService
Defined in:
lib/ecoportal/api/common/graphql/model/diffable/hash_diff_nesting.rb

Overview

TODO:

the aim is to adapt it by:

  1. Removing the patch_ver model ✅
  2. Using symbol keys ✅
Note:

this is a literal copy of ecoportal-api-v2 gem has_diff function.

Defined Under Namespace

Modules: InstanceMethods

Constant Summary collapse

META_KEYS =
%i[id].freeze
NO_CHANGES =
"%not-changed!%".freeze

Class Method Summary collapse

Methods included from InstanceMethods

change_diff

Class Method Details

.included(base) ⇒ Object



9
10
11
12
13
# File 'lib/ecoportal/api/common/graphql/model/diffable/hash_diff_nesting.rb', line 9

def included(base)
  super

  base.send :include, InstanceMethods
end