#8 ✓resolved
Matt Todd

Pref Manager Error

Reported by Matt Todd | January 19th, 2008 @ 11:23 PM | in Release 0.4.0

[Patch sent in from bill Marquette on the mailing list.]

Subject: [PATCH] fixes for pref_manager example

On Jan 19, 2008 11:05 PM, Bill Marquette wrote:

This patch allows the client to run.

--Bill

Index: example/pref_manager/client.rb
===================================================================
--- example/pref_manager/client.rb      (revision 35)
+++ example/pref_manager/client.rb      (working copy)
@@ -1,6 +1,6 @@
 #!/usr/bin/env ruby -wKU

-%w(halcyon/client).each{|dep|require dep}
+%w(rubygems halcyon/client).each{|dep|require dep}

 $port = 4447 if $0 == __FILE__

@@ -61,7 +61,7 @@
  delivery_types = [:digest,:full,:none]
  users.each do |user|
    pref = Pref.find(user,'email')
-    p.set delivery_types[rand(delivery_types.length)]
-    p.save
+    pref.set delivery_types[rand(delivery_types.length)]
+    pref.save
  end
 end

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages