Made a large number of mostly cosmetic fixes after a detailed
[selectricity-live] / config / environment.rb
index dcc9fad3b4ee5a7d2a514c3533ba74394ad85b31..9eb4d577520bf0a0b9e88f03194f77398807d4ab 100644 (file)
@@ -57,6 +57,16 @@ 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]

Benjamin Mako Hill || Want to submit a patch?