lib/rom/repository/changeset/update.rb in rom-repository-1.0.0.beta2 vs lib/rom/repository/changeset/update.rb in rom-repository-1.0.0.beta3

- old
+ new

@@ -6,9 +6,22 @@ class Update < Changeset # @!attribute [r] primary_key # @return [Symbol] The name of the relation's primary key attribute option :primary_key, reader: true + # Commit update changeset if there's a diff + # + # This returns original tuple if there's no diff + # + # @return [Hash] + # + # @see Changeset#commit + # + # @api public + def commit + diff? ? super : original + end + # Return true # # @return [TrueClass] # # @api public