修改留言功能
This commit is contained in:
parent
3a6f055159
commit
131c5ba31b
|
@ -29,12 +29,12 @@ class Mailer < ActionMailer::Base
|
||||||
|
|
||||||
# Builds a Mail::Message object used to email recipients of the added journals for message.
|
# Builds a Mail::Message object used to email recipients of the added journals for message.
|
||||||
#
|
#
|
||||||
def journals_for_message_add(user, journals_for_message)
|
# def journals_for_message_add(user, journals_for_message)
|
||||||
@user = User.current
|
# @user = User.current
|
||||||
@url = url_for(:controller => 'users', :action => 'user_newfeedback')
|
# @url = url_for(:controller => 'users', :action => 'user_newfeedback')
|
||||||
mail :to => user.mail,
|
# mail :to => user.mail,
|
||||||
:subject => "hello"
|
# :subject => "hello"
|
||||||
end
|
# end
|
||||||
|
|
||||||
# Builds a Mail::Message object used to email recipients of the added issue.
|
# Builds a Mail::Message object used to email recipients of the added issue.
|
||||||
#
|
#
|
||||||
|
|
|
@ -23,7 +23,7 @@ module RedmineApp
|
||||||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
|
||||||
|
|
||||||
# Activate observers that should always be running.
|
# 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.store_full_sti_class = true
|
||||||
config.active_record.default_timezone = :local
|
config.active_record.default_timezone = :local
|
||||||
|
|
Loading…
Reference in New Issue