Skip to content

Commit

Permalink
minor syntax change
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyongplaymesh committed Apr 14, 2012
1 parent eb633eb commit fdb6be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/forem/post.rb
Expand Up @@ -29,7 +29,7 @@ class Post < ActiveRecord::Base
after_save :email_topic_subscribers, :if => Proc.new { |p| p.approved? && !p.notified? }

after_create :set_topic_last_post_at
after_create :subscribe_replier, :if => Proc.new { |p| p.user.forem_auto_subscribe }
after_create :subscribe_replier, :if => Proc.new { |p| p.user.forem_auto_subscribe? }
after_create :skip_pending_review_if_user_approved

after_save :approve_user, :if => :approved?
Expand Down

0 comments on commit fdb6be8

Please sign in to comment.