Sha256: 91cccb56eb46b7dfafc5a8446322f2c5e3b738452f06327931a58dae50f91afe
Contents?: true
Size: 541 Bytes
Versions: 7
Compression:
Stored size: 541 Bytes
Contents
# frozen_string_literal: true module TableSync::ORMAdapter class Sequel < Base def self.model_naming(object_class) TableSync::NamingResolver::Sequel.new( table_name: object_class.table_name, db: object_class.db, ) end def attributes object.values end def init @object = object_class.new(object_data.except(*primary_key_columns)) @object.set_fields(needle, needle.keys) super end def find @object = object_class.find(needle) super end end end
Version data entries
7 entries across 7 versions & 1 rubygems