Convert a lot of :a => b to a: b and bring peace to the world

This commit is contained in:
Karan Misra
2013-03-23 20:32:59 +05:30
parent cb9106c3a7
commit 5dfb04e4b3
62 changed files with 171 additions and 171 deletions

View File

@@ -52,7 +52,7 @@ class PostCreator
if @opts[:archetype] == Archetype.private_message
usernames = @opts[:target_usernames].split(',')
User.where(:username => usernames).each do |u|
User.where(username: usernames).each do |u|
unless guardian.can_send_private_message?(u)
topic.errors.add(:archetype, :cant_send_pm)