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

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,