diff options
Diffstat (limited to 'app/models/watcher.rb')
-rw-r--r-- | app/models/watcher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/watcher.rb b/app/models/watcher.rb index 8ea457060..c17ceae7b 100644 --- a/app/models/watcher.rb +++ b/app/models/watcher.rb @@ -22,7 +22,7 @@ class Watcher < ActiveRecord::Base belongs_to :user validates_presence_of :user - validates_uniqueness_of :user_id, :scope => [:watchable_type, :watchable_id] + validates_uniqueness_of :user_id, :scope => [:watchable_type, :watchable_id], :case_sensitive => false validate :validate_user # Returns true if at least one object among objects is watched by user |