Module: FactoryBot::ScopedSequence::Extension::EvaluatorExtension

Defined in:
lib/factory_bot/scoped_sequence/extension.rb

Instance Method Summary collapse

Instance Method Details

#increment_scoped_sequence(sequence) ⇒ Object



22
23
24
25
# File 'lib/factory_bot/scoped_sequence/extension.rb', line 22

def increment_scoped_sequence(sequence)
  scope_value = send(sequence.scope_name)
  sequence.next(scope_value, self)
end