lib/rom/sql/relation.rb in rom-sql-1.2.1 vs lib/rom/sql/relation.rb in rom-sql-1.2.2

- old
+ new

@@ -110,10 +110,10 @@ def self.primary_key_columns(db, table) names = db.respond_to?(:primary_key) ? Array(db.primary_key(table)) : [:id] names.map { |col| :"#{table}__#{col}" } end - option :primary_key, reader: true, default: -> rel { rel.schema.primary_key_name } + option :primary_key, default: -> { schema.primary_key_name } # Return relation that will load associated tuples of this relation # # This method is useful for defining custom relation views for relation # composition when you want to enhance default association query