Sha256: a2b8209a03e70b194bf083d5ffd043ce3ad3132523b708cb53a8ac9df6359ba5

Contents?: true

Size: 642 Bytes

Versions: 20

Compression:

Stored size: 642 Bytes

Contents

module ForestAdminDatasourceToolkit
  module Schema
    module Relations
      class PolymorphicOneToManySchema < 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, 'PolymorphicOneToMany')
          @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_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.80 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.79 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.78 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.77 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.76 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.75 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.74 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.73 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.72 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.71 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.70 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.69 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.68 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.67 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.66 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.65 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.64 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.63 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb
forest_admin_datasource_toolkit-1.0.0.pre.beta.62 lib/forest_admin_datasource_toolkit/schema/relations/polymorphic_one_to_many_schema.rb