If a Sequel::Model instance is given, return it as-is instead of attempting to convert it.
19 20 21 22 23 24 25
# File 'lib/sequel/extensions/_model_pg_row.rb', line 19 def row_type(db_type, v) if v.is_a?(Sequel::Model) v else super end end