instance method
to_gid_param
Ruby on Rails 1.2.1
Last seen in v1.3.0Signature
to_gid_param(options = {})
Returns the Global ID parameter of the model.
model = Person.new id: 1 model.to_gid_param # => ""Z2lkOi8vYm9yZGZvbGlvL1BlcnNvbi8x"
Parameters
-
optionsopt = {}
Source
# File lib/global_id/identification.rb, line 46
def to_gid_param(options = {})
to_global_id(options).to_param
end
Defined in lib/global_id/identification.rb line 46
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in GlobalID::Identification