Method: ROM::Changeset#new

Defined in:
changeset/lib/rom/changeset.rb

#new(relation, **new_options) ⇒ Changeset

Return a new changeset with provided relation

New options can be provided too

Parameters:

  • relation (Relation)
  • new_options (Hash)

Returns:



129
130
131
# File 'changeset/lib/rom/changeset.rb', line 129

def new(relation, **new_options)
  self.class.new(relation, **options, **new_options)
end