summaryrefslogtreecommitdiff
path: root/app/models/ringtone.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-21 12:46:39 +0100
committerPeter Kozak <spag@golwen.net>2013-03-21 12:46:39 +0100
commit844697e0398c128025df76810c6b091c2a3d4114 (patch)
treeaf7706312bcc189af0974034e16ddbca2379909c /app/models/ringtone.rb
parent0f27f97cac5ac9283a2b2e403effa3b71afa673b (diff)
to_s method
Diffstat (limited to 'app/models/ringtone.rb')
-rw-r--r--app/models/ringtone.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ringtone.rb b/app/models/ringtone.rb
index 45ecd93..2b08c9f 100644
--- a/app/models/ringtone.rb
+++ b/app/models/ringtone.rb
@@ -24,6 +24,6 @@ class Ringtone < ActiveRecord::Base
belongs_to :ringtoneable, :polymorphic => true
def to_s
- self.bellcore_id.to_s
+ CORE_RINGTONES_AVAILABLE.index(self.bellcore_id)
end
end