Sha256: 3b438a81275df91c20225e019c736643db6295076602726313c3a121d6c43d04
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
require_dependency "ckpages/application_controller" module Ckpages class AscendantController < ::ApplicationController before_action :set_page, only: [:show] def show if @page.redirect_url? redirect_to @page.redirect_url, status: 301 end end private def set_page path = request.original_fullpath @page = Page.where(:path => CGI::unescape(path)).first end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ckpages-0.1.1 | app/controllers/ckpages/ascendant_controller.rb |