Sha256: 22c6ccbc2b768ff07df1efeaaa56c08be4cf2c470afd2fa3ef51c12dc9f08749
Contents?: true
Size: 499 Bytes
Versions: 8
Compression:
Stored size: 499 Bytes
Contents
require 'active_support/concern' class GlobalID module Identification extend ActiveSupport::Concern def to_global_id @global_id ||= GlobalID.create(self) end alias to_gid to_global_id def to_gid_param to_global_id.to_param end def to_signed_global_id(options = {}) SignedGlobalID.create(self, options) end alias to_sgid to_signed_global_id def to_sgid_param(options = {}) to_signed_global_id(options).to_param end end end
Version data entries
8 entries across 8 versions & 3 rubygems