lib/gretel/trails/stores/url_store.rb
# Decodes links array from Base64.
Decodes links array from Base64.
Decodes links array from Base64 .
def decode_base64(base64)
          json = Base64.urlsafe_decode64(base64)
          JSON.parse(json)
        rescue
          Rails.logger.info "[Gretel] Trail decode failed: Invalid Base64 '#{base64}' in trail"
          []
        end
def decode_base64 ( base64 ) json = Base64 . urlsafe_decode64 ( base64 ) JSON . parse ( json ) rescue Rails . logger . info "[Gretel] Trail decode failed: Invalid Base64 '#{base64}' in trail" [ ] end
Decodes links array from Base64.
Decodes links array from Base64 .
base64
<not_specific>