/usr/lib/ruby/vendor_ruby/global_id/identification.rb is in ruby-globalid 0.3.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 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
|