Permalink
Browse files

Moved ClearanceMailer into the app directory

  • Loading branch information...
1 parent 6762956 commit ca927e990b921131d235b62fd4469c5d1b61ec9c @jferris jferris committed Mar 7, 2009
@@ -0,0 +1,19 @@
+class ClearanceMailer < ActionMailer::Base
+
+ default_url_options[:host] = HOST
+
+ def change_password(user)
+ from DO_NOT_REPLY
+ recipients user.email
+ subject "Change your password"
+ body :user => user
+ end
+
+ def confirmation(user)
+ from DO_NOT_REPLY
+ recipients user.email
+ subject "Account confirmation"
+ body :user => user
+ end
+
+end
@@ -19,7 +19,7 @@ def manifest
end
m.directory File.join("app", "models")
- ["app/models/user.rb", "app/models/clearance_mailer.rb"].each do |file|
+ ["app/models/user.rb"].each do |file|
m.file file, file
end
@@ -1,5 +0,0 @@
-class ClearanceMailer < ActionMailer::Base
- default_url_options[:host] = HOST
-
- include Clearance::App::Models::ClearanceMailer
-end
View
@@ -1,7 +1,6 @@
require 'clearance/lib/extensions/errors'
require 'clearance/lib/extensions/rescue'
require 'clearance/authentication'
-require 'clearance/app/models/clearance_mailer'
require 'clearance/app/models/user'
require 'clearance/test/functional/confirmations_controller_test'
require 'clearance/test/functional/passwords_controller_test'
@@ -1,23 +0,0 @@
-module Clearance
- module App
- module Models
- module ClearanceMailer
-
- def change_password(user)
- from DO_NOT_REPLY
- recipients user.email
- subject "Change your password"
- body :user => user
- end
-
- def confirmation(user)
- from DO_NOT_REPLY
- recipients user.email
- subject "Account confirmation"
- body :user => user
- end
-
- end
- end
- end
-end

0 comments on commit ca927e9

Please sign in to comment.