public
Description: This is an extension for Radiant CMS which allows you to redirect pages with http status codes.
Homepage: http://www.randomutterings.com/projects/page_redirect
Clone URL: git://github.com/randomutterings/page_redirect.git
page_redirect / page_redirect_extension.rb
100644 20 lines (15 sloc) 0.501 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Uncomment this if you reference any of your controllers in activate
# require_dependency 'application'
 
class PageRedirectExtension < Radiant::Extension
  version "0.1"
  description "Allows you to redirect pages with valid http status codes."
  url "http://www.randomutterings.com/projects/page_redirect"
  
  # define_routes do |map|
  # map.connect 'admin/page_redirect/:action', :controller => 'admin/page_redirect'
  # end
  
  def activate
    Redirect
  end
  
  def deactivate
  end
  
end