From 3315116832c5f966eac694af27d4756ffec6455f Mon Sep 17 00:00:00 2001 From: alan <547533434@qq.com> Date: Mon, 19 Jan 2015 14:35:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=8A=E8=AF=BE=E7=A8=8B--?= =?UTF-8?q?=E7=95=99=E8=A8=80=EF=BC=9A=E7=BB=99=E8=AF=BE=E7=A8=8B=E7=95=99?= =?UTF-8?q?=E8=A8=80=E5=8D=B4=E8=BF=94=E5=9B=9E404=E3=80=8Bbug=20Signed-of?= =?UTF-8?q?f-by:=20alan=20<547533434@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/contest.rb | 3 ++- app/views/layouts/mailer.html.erb | 2 +- app/views/mailer/issue_add.html.erb | 1 + app/views/mailer/issue_add.text.erb | 1 + app/views/mailer/issue_edit.html.erb | 2 ++ app/views/mailer/issue_edit.text.erb | 2 ++ 6 files changed, 9 insertions(+), 2 deletions(-) diff --git a/app/models/contest.rb b/app/models/contest.rb index ad54e8fb4..650e363a8 100644 --- a/app/models/contest.rb +++ b/app/models/contest.rb @@ -15,7 +15,8 @@ class Contest < ActiveRecord::Base has_many :praise_tread, as: :praise_tread_object, dependent: :destroy has_many :contestnotifications, :dependent => :destroy, :include => :author - + + acts_as_attachable diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb index aa43b9194..b80206728 100644 --- a/app/views/layouts/mailer.html.erb +++ b/app/views/layouts/mailer.html.erb @@ -39,7 +39,7 @@ a:hover.mail_reply{ background:#06a9bc; text-decoration:none;} <%= yield %>