Sha256: f6ff2130c7caed2901f1802a4c377a7613c4cc237dfb23884e3ea3b824e0a079
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
# frozen_string_literal: true require 'ostruct' module GlobalRegistry #:nodoc: module Bindings #:nodoc: module Options class RelationshipClassOptions delegate :id_column, :type, :push_on, :client_integration_id, :primary_binding, :primary, :primary_class, :primary_foreign_key, :primary_name, :related_binding, :related, :related_class, :related_foreign_key, :related_type, :related_name, :related_global_registry_id, :exclude, :fields, to: :@options def initialize(type, model_class) @model_class = model_class @options = OpenStruct.new model_class._global_registry_bindings_options[:relationships][type] end def ensure_type? @options.ensure_type.present? end def rename_entity_type? @options.rename_entity_type.present? end def include_all_columns? @options.include_all_columns.present? end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems