class method self.signed_global_id

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v6.1.7.10

Signature

self.signed_global_id(fixture_set_name, label, column_type: :integer, **options)

No documentation comment.

Parameters

fixture_set_name req
label req
column_type key = :integer
options keyrest
Source
# File activerecord/lib/active_record/fixtures.rb, line 588
      def signed_global_id(fixture_set_name, label, column_type: :integer, **options)
        identifier = identify(label, column_type)
        model_name = default_fixture_model_name(fixture_set_name)
        uri = URI::GID.build([GlobalID.app, model_name, identifier, {}])

        SignedGlobalID.new(uri, **options)
      end

Defined in activerecord/lib/active_record/fixtures.rb line 588 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::FixtureSet

Type at least 2 characters to search.

↑↓ navigate · open · esc close