lib/rom/sql/extensions/postgres/commands.rb in rom-sql-1.2.1 vs lib/rom/sql/extensions/postgres/commands.rb in rom-sql-1.2.2
- old
+ new
@@ -67,22 +67,22 @@
defines :constraint, :conflict_target, :update_statement, :update_where
# @!attribute [r] constraint
# @return [Symbol] the name of the constraint expected to be violated
- option :constraint, reader: true, default: -> c { c.class.constraint }
+ option :constraint, default: -> { self.class.constraint }
# @!attribute [r] conflict_target
# @return [Object] the column or expression to handle a violation on
- option :conflict_target, reader: true, default: -> c { c.class.conflict_target }
+ option :conflict_target, default: -> { self.class.conflict_target }
# @!attribute [r] update_statement
# @return [Object] the update statement which will be executed in case of a violation
- option :update_statement, reader: true, default: -> c { c.class.update_statement }
+ option :update_statement, default: -> { self.class.update_statement }
# @!attribute [r] update_where
# @return [Object] the WHERE clause to be added to the update
- option :update_where, reader: true, default: -> c { c.class.update_where }
+ option :update_where, default: -> { self.class.update_where }
# Tries to insert provided tuples and do an update (or nothing)
# when the inserted record violates a unique constraint and hence
# cannot be appended to the table
#