Sha256: 32def1f6608e1b50d122be8813a9623d44a9f3a77c923220dac7a1676ada37e2
Contents?: true
Size: 545 Bytes
Versions: 18
Compression:
Stored size: 545 Bytes
Contents
require 'active_support/concern' class GlobalID module Identification extend ActiveSupport::Concern def to_global_id(options = {}) @global_id ||= GlobalID.create(self, options) end alias to_gid to_global_id def to_gid_param(options = {}) to_global_id(options).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
18 entries across 18 versions & 7 rubygems