Module: ActiveRecord::HashidsUri::InstanceMethods

Defined in:
lib/hashids_uri.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject



40
41
42
43
44
45
# File 'lib/hashids_uri.rb', line 40

def to_param
  ::Hashids.new(
    ActiveRecord::HashidsUri.salt,
    ActiveRecord::HashidsUri.min_length
  ).encode(id)
end