Commit 479872b6
Changed files (1)
app
models
app/models/avatar.rb
@@ -1,6 +1,6 @@
class Avatar < ActiveRecord::Base
include PublicActivity::Model
- tracked owner: Proc.new{ |controller, model| controller.current_user }
+ tracked owner: Proc.new{ |controller, model| controller.current_user if controller }
belongs_to :user
mount_uploader :avatar, AvatarUploader