diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/enumeration.rb | 2 | ||||
-rw-r--r-- | app/models/role.rb | 4 | ||||
-rw-r--r-- | app/models/tracker.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/app/models/enumeration.rb b/app/models/enumeration.rb index 4540e9720..d69b34e6a 100644 --- a/app/models/enumeration.rb +++ b/app/models/enumeration.rb @@ -131,7 +131,7 @@ class Enumeration < ActiveRecord::Base private def check_integrity - raise "Can't delete enumeration" if self.in_use? + raise "Cannot delete enumeration" if self.in_use? end end diff --git a/app/models/role.rb b/app/models/role.rb index 790b0426c..2db77a1a0 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -204,8 +204,8 @@ private end def check_deletable - raise "Can't delete role" if members.any? - raise "Can't delete builtin role" if builtin? + raise "Cannot delete role" if members.any? + raise "Cannot delete builtin role" if builtin? end def self.find_or_create_system_role(builtin, name) diff --git a/app/models/tracker.rb b/app/models/tracker.rb index 4b86a7ecb..e5c789975 100644 --- a/app/models/tracker.rb +++ b/app/models/tracker.rb @@ -109,6 +109,6 @@ class Tracker < ActiveRecord::Base private def check_integrity - raise Exception.new("Can't delete tracker") if Issue.where(:tracker_id => self.id).any? + raise Exception.new("Cannot delete tracker") if Issue.where(:tracker_id => self.id).any? end end |