Created
August 20, 2010 08:09
-
-
Save tosch/539864 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# make changes when needed | |
# | |
# you may use another persistent storage for example or include a worker so that | |
# you don't have to run it in a separate instance | |
require 'ruote/storage/fs_storage' | |
RUOTE_STORAGE = { | |
:klass => Ruote::FsStorage, | |
:args => ["ruote_work_#{Rails.env}"] | |
} | |
RuoteKit.engine = RuoteKit.engine = Ruote::Engine.new( | |
RUOTE_STORAGE[:klass].new(RUOTE_STORAGE[:args]) | |
) | |
RuoteKit.engine.register do | |
# register your own participants using the participant method | |
# | |
# Example: participant 'alice', Ruote::StorageParticipant see | |
# http://ruote.rubyforge.org/participants.html for more info | |
# register the catchall storage participant named '.+' | |
catchall | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment