On Thu, Jun 03, 2010 at 08:53:24AM -0700, threetee wrote:
>
> One additional question: is there an accepted best practice for where
> local participant definitions such as this should be placed in a Rails/
> ruote-kit app?
Hello ThreeTee,
I have two rails projects with ruote in development now. The participants are
placed under lib/
There is one project named "roma", it has
lib/roma/participants/initialize_new_product.rb
containing something like
---8<---
module Roma
module Participants
class InitializeNewProduct
include Ruote::LocalParticipant
def initialize (opts)
@options = opts
end
def consume (workitem)
# ...
end
end
end
end
--->8---
My configuration looks like
---8<---
RuoteKit.configure do |c|
# ...
c.register do
participant(
'initialize_new_product', Roma::Participants::InitializeNewProduct)
end
end
--->8---
Best regards,
--
John Mettraux - http://jmettraux.wordpress.com
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to [email protected]
to unsubscribe : send email to [email protected]
more options : http://groups.google.com/group/openwferu-users?hl=en