]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_block.rb
Standardise on double quoted strings
[rails.git] / app / models / user_block.rb
index 6ebdeee0b205087f7fdc3c854009112f5a5d5c90..3759afd692f4c5dbd0e3a66f43b12ce9b12a71a3 100644 (file)
@@ -44,7 +44,7 @@ class UserBlock < ActiveRecord::Base
   # block. this should be caught and dealt with in the controller,
   # but i've also included it here just in case.
   def moderator_permissions
-    errors.add(:base, I18n.t('user_block.model.non_moderator_update')) if creator_id_changed? && !creator.moderator?
-    errors.add(:base, I18n.t('user_block.model.non_moderator_revoke')) unless revoker_id.nil? || revoker.moderator?
+    errors.add(:base, I18n.t("user_block.model.non_moderator_update")) if creator_id_changed? && !creator.moderator?
+    errors.add(:base, I18n.t("user_block.model.non_moderator_revoke")) unless revoker_id.nil? || revoker.moderator?
   end
 end