instance method create_global_id

Ruby on Rails 1.3.0

Since v1.1.0 Last seen in v1.3.0 Private

Available in: v1.1.0 v1.2.1 v1.3.0

Signature

create_global_id(fixture_set_name, label, klass:, column_type: :integer, **options)

No documentation comment.

Parameters

fixture_set_name req
label req
klass keyreq
column_type key = :integer
options keyrest
Source
# File lib/global_id/fixture_set.rb, line 14
      def create_global_id(fixture_set_name, label, klass:, 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, {}])
        klass.new(uri, **options)
      end

Defined in lib/global_id/fixture_set.rb line 14 · View on GitHub · Improve this page · Find usages on GitHub

Defined in GlobalID::FixtureSet

Type at least 2 characters to search.

↑↓ navigate · open · esc close