Sha256: 0a11eb2b16ae1e327255eefc0cc07c59ec1d096b143816176c640b4a77f7fd55
Contents?: true
Size: 1.27 KB
Versions: 10
Compression:
Stored size: 1.27 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, :if, :unless, 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
10 entries across 10 versions & 1 rubygems