Skip to content

Instantly share code, notes, and snippets.

@tosch
Created August 20, 2010 08:09
Show Gist options
  • Save tosch/539864 to your computer and use it in GitHub Desktop.
Save tosch/539864 to your computer and use it in GitHub Desktop.
# 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