lib/mention/alert.rb in mention-api-0.0.1 vs lib/mention/alert.rb in mention-api-0.0.2

- old
+ new

@@ -14,10 +14,14 @@ attribute :sources, Array[String], default: ["web","facebook","twitter","news","blogs","videos","forums","images"] attribute :shares, Array[Share], default: [] def remove_from(account) share = share_for(account) - account.remove(self, share) + account.remove_alert(self, share) + end + + def mentions(account, params = {}) + account.fetch_mentions(self, params) end private def share_for(account) found = shares.find{|share| share.account_id}