Permalink
Browse files

moving routes into config/routes.rb

  • Loading branch information...
1 parent aadda22 commit b85cbb0a0da3607871af5d5faedac8c2fbea0a4e @jomz jomz committed Aug 16, 2011
Showing with 3 additions and 4 deletions.
  1. +3 −0 config/routes.rb
  2. +0 −4 mailer_extension.rb
View
@@ -0,0 +1,3 @@
+ActionController::Routing::Routes.draw do |map|
+ map.resources :mail, :path_prefix => "/pages/:page_id", :controller => "mail"
+end
View
@@ -3,10 +3,6 @@ class MailerExtension < Radiant::Extension
description "Provides support for email forms and generic mailing functionality."
url "http://github.com/radiant/radiant-mailer-extension"
- define_routes do |map|
- map.resources :mail, :path_prefix => "/pages/:page_id", :controller => "mail"
- end
-
def activate
Page.class_eval do
include MailerTags

0 comments on commit b85cbb0

Please sign in to comment.