app/models/named_variable_date.rb
def sort_join_name_for(klass, path)
      salt = Time.current.to_i.to_s(36)

      Base64.urlsafe_encode64 "#{klass.name}##{path}##{salt}", padding: false
    end
# Build an idempotent, guaranteed-unique name for joining against a named variable date
# with a specific path in order to sort on it.
#
# @param [Class] klass
# @param [String] path
# @return [String]
Build an idempotent, guaranteed-unique name for joining against a named variable date
with a specific path in order to sort on it.
Build an idempotent guaranteed - unique name for joining against a named variable date with a specific path in order to sort on it .
def sort_join_name_for(klass, path)
      salt = Time.current.to_i.to_s(36)
      Base64.urlsafe_encode64 "#{klass.name}##{path}##{salt}", padding: false
    end
def sort_join_name_for ( klass , path ) salt = Time . current . to_i . to_s ( 36 ) Base64 . urlsafe_encode64 "#{klass.name}##{path}##{salt}" , padding : false end
Build an idempotent, guaranteed-unique name for joining against a named variable date
with a specific path in order to sort on it.
Build an idempotent guaranteed - unique name for joining against a named variable date with a specific path in order to sort on it .
None
String
klass
path
None