This commit is contained in:
albert
2013-02-19 11:56:23 -05:00
parent 585f2ea839
commit 34b0c14550
3 changed files with 10 additions and 1 deletions

View File

@@ -37,6 +37,9 @@ class PostsController < ApplicationController
format.js
end
end
def error
end
private
def search_error(exception)

View File

@@ -112,6 +112,10 @@ class AnonymousUser
[]
end
def email
""
end
def last_forum_read_at
Time.now
end

View File

@@ -3,7 +3,9 @@ module Maintenance
class LoginReminderMailer < ActionMailer::Base
def notice(user)
@user = user
mail(:to => user.email, :subject => "#{Danbooru.config.app_name} login reminder", :from => Danbooru.config.contact_email)
if user.email.present?
mail(:to => user.email, :subject => "#{Danbooru.config.app_name} login reminder", :from => Danbooru.config.contact_email)
end
end
end
end