Sha256: 20157627a3e52550c53abd86be6a27ded52d3115c9a8c9bdbfc88ed7dd7a0350
Contents?: true
Size: 461 Bytes
Versions: 7
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true module TableSync::ORMAdapter class ActiveRecord < Base def self.model_naming(object_class) TableSync::NamingResolver::ActiveRecord.new(table_name: object_class.table_name) end def find @object = object_class.find_by(needle) super end def init @object = object_class.new(object_data) super end def attributes object.attributes.symbolize_keys end end end
Version data entries
7 entries across 7 versions & 1 rubygems