]> projects.mako.cc - selectricity-live/blobdiff - config/environment.rb
rebranded from votingbooth to hyperchad
[selectricity-live] / config / environment.rb
index 34a2d87ec383b4d871844e3311313a2fc99297e4..66e5c62f960f2bd1e11a4211fcd8a0ebb1151555 100644 (file)
@@ -50,8 +50,30 @@ 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'
 
+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"
+  config :email_from, MAIL_CONFIG[:from]
+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?