Sha256: 2ca18b6c1ea06a87688e170bf7382b54a59f34abeee048cf64698583c06c3fd3

Contents?: true

Size: 640 Bytes

Versions: 20

Compression:

Stored size: 640 Bytes

Contents

module ForestAdminDatasourceToolkit
  module Schema
    module Relations
      class PolymorphicOneToOneSchema < RelationSchema
        attr_accessor :origin_key
        attr_reader :origin_key_target, :origin_type_field, :origin_type_value

        def initialize(origin_key:, origin_key_target:, foreign_collection:, origin_type_field:, origin_type_value:)
          super(foreign_collection, 'PolymorphicOneToOne')
          @origin_key = origin_key
          @origin_key_target = origin_key_target
          @origin_type_field = origin_type_field
          @origin_type_value = origin_type_value
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
forest_admin_datasource_toolkit-1.0.0.pre.beta.81 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.80 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.79 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.78 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.77 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.76 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.75 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.74 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.73 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.72 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.71 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.70 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.69 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.68 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.67 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.66 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.65 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.64 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.63 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.62 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_one_schema.rb