app/models/like.rb in social_stream-base-0.12.1 vs app/models/like.rb in social_stream-base-0.13.0
- old
+ new
@@ -15,11 +15,11 @@
def find!(subject, object)
find(subject, object) ||
raise(ActiveRecord::RecordNotFound)
end
- def build(subject, object)
- new object.new_like(subject)
+ def build(subject, user, object)
+ new object.new_like(subject, user)
end
end
# Initialize a new like activity
def initialize(activity)