Add a default mail notification setting for new users

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4219 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Eric Davis committed 2010-09-28 18:36:50 +00:00
1 parent c059300d99
commit 582ed86d82
5 files changed
+19 -1

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ class User < Principal
validates_confirmation_of :password, :allow_nil => true
def before_create
self.mail_notification = 'only_my_events'
self.mail_notification = Setting.default_notification_option
true
end