Skip to content

Commit

Permalink
minirefactors
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Sep 23, 2015
1 parent 02b1e30 commit 9969884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/activity.rb
Expand Up @@ -18,7 +18,7 @@ def self.log(user, action, actionable)
end

def self.on(actionable)
where(actionable_type: actionable.class.name, actionable_id: actionable.id)
where(actionable: actionable)
end

def self.by(user)
Expand Down

0 comments on commit 9969884

Please sign in to comment.