Skip to content

Commit

Permalink
fixed mark as read when no posts
Browse files Browse the repository at this point in the history
added sendmail config line into enviroment
  • Loading branch information
kiosan committed Oct 24, 2008
1 parent 578a307 commit f8dceb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/home_controller.rb
@@ -1,7 +1,7 @@
class HomeController < ApplicationController
def index
if params[:mark_as_read] && current_user
current_user.profile.update_attribute(:last_read_post_id, Post.find(:first, :order=>'id DESC').id)
current_user.profile.update_attribute(:last_read_post_id, Post.find(:first, :order=>'id DESC').id) rescue nil
end

@current_tab = 'forums'
Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Expand Up @@ -59,7 +59,7 @@
# config.active_record.default_timezone = :utc
end


ActionMailer::Base.delivery_method = :sendmail

require 'time_with_zone'
require 'exceptions.rb'
Expand Down

0 comments on commit f8dceb8

Please sign in to comment.