summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/call_forward.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/models/call_forward.rb b/app/models/call_forward.rb
index 159eb84..0df2a35 100644
--- a/app/models/call_forward.rb
+++ b/app/models/call_forward.rb
@@ -90,25 +90,25 @@ class CallForward < ActiveRecord::Base
end
def destination_phone_number
- if self.destinationable_type.downcase == 'phonenumber'
+ if self.destinationable_type.to_s.downcase == 'phonenumber'
return self.destination
end
end
def destination_phone_number=(destination_number)
- if self.destinationable_type.downcase == 'phonenumber'
+ if self.destinationable_type.to_s.downcase == 'phonenumber'
self.destination = destination_number
end
end
def destination_greeting
- if self.destinationable_type.downcase == 'voicemailaccount'
+ if self.destinationable_type.to_s.downcase == 'voicemailaccount'
return self.destination
end
end
def destination_greeting=(destination_file)
- if self.destinationable_type.downcase == 'voicemailaccount'
+ if self.destinationable_type.to_s.downcase == 'voicemailaccount'
self.destination = destination_file
end
end