Sha256: 0d1966d21eb4b6232cba37d188867c3145543f29a0eada8d66251f47b7fd0e7b
Contents?: true
Size: 423 Bytes
Versions: 3
Compression:
Stored size: 423 Bytes
Contents
require 'voight_kampff' class Shortener::ShortenedUrlsController < ActionController::Base include Shortener def show token = ::Shortener::ShortenedUrl.extract_token(params[:id]) track = Shortener.ignore_robots.blank? || request.human? url = ::Shortener::ShortenedUrl.fetch_with_token(token: token, additional_params: params, track: track) redirect_to url[:url], status: :moved_permanently end end
Version data entries
3 entries across 3 versions & 1 rubygems