minirefactors
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user