introduce Enum

This commit is contained in:
Gosha Arinich
2013-03-01 15:07:44 +03:00
parent 0c8c41b131
commit 0c99dea153
45 changed files with 242 additions and 216 deletions

View File

@@ -64,7 +64,7 @@ class UserNotifications < ActionMailer::Base
return unless @post.present?
username = @notification.data_hash[:display_username]
notification_type = Notification.InvertedTypes[opts[:notification].notification_type].to_s
notification_type = Notification.types[opts[:notification].notification_type].to_s
email_opts = {
topic_title: @notification.data_hash[:topic_title],