Sha256: d23747955d0230217c1a80d172db48644c480450a8f32969390a38d09d01da6a
Contents?: true
Size: 319 Bytes
Versions: 76
Compression:
Stored size: 319 Bytes
Contents
module Scrivito class LegacyRedirectController < ActionController::Metal include ActionController::Redirecting include Rails.application.routes.url_helpers def index route = Route.find(self, :slug_id) redirect_to route.generate_path(params.slice(:id, :slug).symbolize_keys) end end end
Version data entries
76 entries across 76 versions & 1 rubygems