Sha256: faf69e7248eb6d5b889f70bd407b1d21bb58f566b080fd3d637f3be38318f7ed

Contents?: true

Size: 328 Bytes

Versions: 11

Compression:

Stored size: 328 Bytes

Contents

module Scrivito
  class LegacyRedirectController < ActionController::Metal
    include ActionController::Redirecting
    include Rails.application.routes.url_helpers

    def index
      route = Route.find(_routes, :slug_id)
      redirect_to route.generate_path(self, params.slice(:id, :slug).symbolize_keys)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
scrivito_sdk-1.3.0.rc2 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.3.0.rc1 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.2.0 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.2.0.rc3 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.2.0.rc2 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.2.0.rc1 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.1.1 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.1.0 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.1.0.rc3 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.1.0.rc2 app/controllers/scrivito/legacy_redirect_controller.rb
scrivito_sdk-1.1.0.rc1 app/controllers/scrivito/legacy_redirect_controller.rb