lib/minuteman/model.rb in minuteman-2.0.0.pre vs lib/minuteman/model.rb in minuteman-2.0.0

- old
+ new

@@ -22,10 +22,12 @@ find(*args) || create(*args) end def self.create(*args) event = super(*args) + Minuteman.config.redis.call("SADD", "#{Minuteman.prefix}::Events", event.type) Minuteman.config.redis.call("SET", "#{event.key}:id", event.id) + event end def key "#{self.class.name}::#{type}:#{time}"