minirefactors

This commit is contained in:
Juanjo Bazán
2015-09-23 12:32:36 +02:00
parent 02b1e30205
commit 9969884a50

View File

@@ -18,7 +18,7 @@ class Activity < ActiveRecord::Base
end end
def self.on(actionable) def self.on(actionable)
where(actionable_type: actionable.class.name, actionable_id: actionable.id) where(actionable: actionable)
end end
def self.by(user) def self.by(user)