Permalink
Browse files

Move routes to config/routes.rb

  • Loading branch information...
1 parent 6dd0319 commit 09f3b0dd1079de20405387917129887db35a90a9 @davec committed Sep 20, 2010
Showing with 4 additions and 5 deletions.
  1. +3 −0 config/routes.rb
  2. +1 −5 textile_editor_extension.rb
View
@@ -0,0 +1,3 @@
+ActionController::Routing::Routes.draw do |map|
+ map.connect 'admin/textile_editor/:action', :controller => 'admin/textile_editor'
+end
@@ -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

0 comments on commit 09f3b0d

Please sign in to comment.