修改留言功能

This commit is contained in:
fanqiang 2013-09-14 08:45:18 +08:00
parent 3a6f055159
commit 131c5ba31b
2 changed files with 7 additions and 7 deletions

View File

@ -29,12 +29,12 @@ class Mailer < ActionMailer::Base
# Builds a Mail::Message object used to email recipients of the added journals for message.
#
def journals_for_message_add(user, journals_for_message)
@user = User.current
@url = url_for(:controller => 'users', :action => 'user_newfeedback')
mail :to => user.mail,
:subject => "hello"
end
# def journals_for_message_add(user, journals_for_message)
# @user = User.current
# @url = url_for(:controller => 'users', :action => 'user_newfeedback')
# mail :to => user.mail,
# :subject => "hello"
# end
# Builds a Mail::Message object used to email recipients of the added issue.
#

View File

@ -23,7 +23,7 @@ module RedmineApp
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Activate observers that should always be running.
config.active_record.observers = :journals_for_message_observer, :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer
config.active_record.observers = :message_observer, :issue_observer, :journal_observer, :news_observer, :document_observer, :wiki_content_observer, :comment_observer
config.active_record.store_full_sti_class = true
config.active_record.default_timezone = :local