Sha256: 96131a177f96cf5e6742f964dfdc195506f885f41ed0bb9886c9c423bb7ecfaa
Contents?: true
Size: 375 Bytes
Versions: 6
Compression:
Stored size: 375 Bytes
Contents
# frozen_string_literal: true module Thermos class Dependency attr_reader :model, :association, :klass, :table def initialize(model:, association:) @model = model @association = association reflection = @model.reflections[@association.to_s] @table = reflection.table_name @klass = reflection.class_name.constantize end end end
Version data entries
6 entries across 6 versions & 1 rubygems