Module: Knuckles::Stages::Hydrator

Extended by:
Hydrator
Included in:
Hydrator
Defined in:
lib/knuckles/stages/hydrator.rb

Instance Method Summary collapse

Instance Method Details

#call(prepared, options) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/knuckles/stages/hydrator.rb', line 8

def call(prepared, options)
  hydrate = options[:hydrate]

  if hydrate && any_missing?(prepared)
    hydrate.call(hydratable(prepared))
  end

  prepared
end