Module: CreateValid::GlobalHelpers

Included in:
KludgyEvalContext
Defined in:
lib/create_valid.rb

Instance Method Summary collapse

Instance Method Details

#next_sequenceObject



117
118
119
# File 'lib/create_valid.rb', line 117

def next_sequence
  ::CreateValid.next_sequence
end

#params_for(model, attributes = nil, &block) ⇒ Object



121
122
123
# File 'lib/create_valid.rb', line 121

def params_for(model, attributes = nil, &block)
  ::CreateValid.register(model, attributes, &block)
end