Permalink
Browse files

replaced string constant with symbol

  • Loading branch information...
1 parent 2c185e1 commit d1490896dfd07510fd3b4ef1ca75ff7b808bacad @tomcz tomcz committed Mar 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/conversation.rb
View
4 app/models/conversation.rb
@@ -6,7 +6,7 @@ class Conversation < ActiveRecord::Base
serialize :parameters
def self.get_or_create(uuid)
- if uuid.to_sym == :new
+ if uuid.to_s == 'new'
self.new
else
conversation = self.find_by_uuid(uuid)
@@ -18,7 +18,7 @@ def self.get_or_create(uuid)
end
def self.destroy_if_exists(uuid)
- if uuid != NEW_ID and self.exists? uuid
+ if uuid.to_s != 'new' and self.exists? uuid
self.destroy uuid
end
end

0 comments on commit d149089

Please sign in to comment.