Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move routes to config/routes.rb

  • Loading branch information...
commit 09f3b0dd1079de20405387917129887db35a90a9 1 parent 6dd0319
David Cato authored
Showing with 4 additions and 5 deletions.
  1. +3 −0  config/routes.rb
  2. +1 −5 textile_editor_extension.rb
3  config/routes.rb
View
@@ -0,0 +1,3 @@
+ActionController::Routing::Routes.draw do |map|
+ map.connect 'admin/textile_editor/:action', :controller => 'admin/textile_editor'
+end
6 textile_editor_extension.rb
View
@@ -5,10 +5,6 @@ class TextileEditorExtension < Radiant::Extension
version "2.2"
description "Places a toolbar above the textarea when Textile is the current input filter."
- define_routes do |map|
- map.connect 'admin/textile_editor/:action', :controller => 'admin/textile_editor'
- end
-
def activate
ApplicationController.send :include, TextileEditor::Ext::ApplicationController
Admin::PagesHelper.send :include, TextileEditor::Ext::Admin::PagesHelper
@@ -25,4 +21,4 @@ def activate
def deactivate
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.