BUGFIX: new users not getting correct error messages

This commit is contained in:
Sam 2014-04-04 11:08:54 +11:00
parent 6fa51738a4
commit 78c844f8d8
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ class UserActionObserver < ActiveRecord::Observer
UserAction::EDIT
end
# like is skipped
return unless action && post && user
# skip any invalid items, eg failed to save post and so on
return unless action && post && user && post.id
row = {
action_type: action,