]> projects.mako.cc - selectricity/blobdiff - app/models/ranking.rb
fixed the string modification function and added support for a titlecase method
[selectricity] / app / models / ranking.rb
index 4b96b54c2060e5d8053c313a8975b901635e9042..ba021a92c5489369e75b92094ffe549ccf5c1730 100644 (file)
@@ -6,4 +6,8 @@ class Ranking < ActiveRecord::Base
     self.rank <=> other.rank
   end
 
     self.rank <=> other.rank
   end
 
+  def to_s
+    self.rank.to_s
+  end
+
 end
 end

Benjamin Mako Hill || Want to submit a patch?