projects
/
selectricity
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rebranded from votingbooth to hyperchad
[selectricity]
/
config
/
environment.rb
diff --git
a/config/environment.rb
b/config/environment.rb
index 22cfe503ceb88f58cbdeb1c71e32a8c143ea0b7d..66e5c62f960f2bd1e11a4211fcd8a0ebb1151555 100644
(file)
--- a/
config/environment.rb
+++ b/
config/environment.rb
@@
-50,13
+50,30
@@
end
# inflect.uncountable %w( fish sheep )
# end
# inflect.uncountable %w( fish sheep )
# end
+MAIL_CONFIG = { :from => 'HyperChad <info@hyperchad.media.mit.edu>'}
+
# Include your application configuration below
require 'uniq_token'
require 'randarray'
require 'rubyvote'
# Include your application configuration below
require 'uniq_token'
require 'randarray'
require 'rubyvote'
+class String
+ def capitalize
+ if self.length <= 1
+ self.upcase
+ else
+ self.split(//)[0].upcase + self..split(//)[1..-1].join("")
+ end
+ end
+end
+
module LoginEngine
config :salt, "voothingboat"
module LoginEngine
config :salt, "voothingboat"
+ config :email_from, MAIL_CONFIG[:from]
end
Engines.start :login
end
Engines.start :login
+
+# action mailer configuration
+ActionMailer::Base.delivery_method = :sendmail
+ActionMailer::Base.default_charset = "utf-8"
Benjamin Mako Hill
||
Want to submit a patch?