lib/rom/sql/plugin/associates.rb in rom-sql-2.0.0.beta1 vs lib/rom/sql/plugin/associates.rb in rom-sql-2.0.0.beta2

- old
+ new

@@ -58,11 +58,11 @@ before_hooks = associate_options.reject(&:after?).map(&:to_hash) after_hooks = associate_options.select(&:after?).map(&:to_hash) command. - with_opts(configured_associations: configured_assocs + associate_options.map(&:name)). + with(configured_associations: configured_assocs + associate_options.map(&:name)). before(*before_hooks). after(*after_hooks) end # Set command to associate tuples with a parent tuple using provided keys @@ -71,13 +71,13 @@ # class CreateTask < ROM::Commands::Create[:sql] # relation :tasks # associates :user, key: [:user_id, :id] # end # - # create_user = rom.command(:user).create.with(name: 'Jane') + # create_user = rom.command(:user).create.curry(name: 'Jane') # # create_tasks = rom.command(:tasks).create - # .with [{ title: 'One' }, { title: 'Two' } ] + # .curry [{ title: 'One' }, { title: 'Two' } ] # # command = create_user >> create_tasks # command.call # # @param [Symbol] name The name of associated table