instance method to_sgid_param

Ruby on Rails 1.3.0

Last seen in v1.3.0

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

Signature

to_sgid_param(options = {})

Returns the Signed Global ID parameter.

model = Person.new id: 1
model.to_sgid_param # => "BAh7CEkiCGdpZAY6BkVUSSIiZ2..."

Parameters

options opt = {}
Source
# File lib/global_id/identification.rb, line 116
    def to_sgid_param(options = {})
      to_signed_global_id(options).to_param
    end

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

Defined in GlobalID::Identification

Type at least 2 characters to search.

↑↓ navigate · open · esc close