Sha256: e79c15cffb6cee4b522ecfe39111bee0ec7964f58ec2595241b73aef0e5f0483
Contents?: true
Size: 461 Bytes
Versions: 4
Compression:
Stored size: 461 Bytes
Contents
# frozen_string_literal: true module TableSync::ORMAdapter class ActiveRecord < Base 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 def self.model_naming(object_class) TableSync::NamingResolver::ActiveRecord.new(table_name: object_class.table_name) end end end
Version data entries
4 entries across 4 versions & 1 rubygems