lib/activity_feed/memory/item.rb in activity_feed-1.1.1 vs lib/activity_feed/memory/item.rb in activity_feed-1.2
- old
+ new
@@ -19,14 +19,18 @@
attributes.each do |key,value|
self.send("#{key}=", value)
end
end
+
+ def attributes
+ @attributes
+ end
def save
raise 'user_id MUST be defined in the attributes' if user_id.blank?
- ActivityFeed.redis.zadd("#{ActivityFeed.namespace}:#{ActivityFeed.key}:#{self.user_id}", DateTime.now.to_i, @attributes.to_json)
+ ActivityFeed.redis.zadd(ActivityFeed.feed_key(self.user_id), DateTime.now.to_i, @attributes.to_json)
end
end
end
end