Created
July 2, 2015 14:46
-
-
Save anonymous/4beae2b1410282fe3c79 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
class WelcomeController < ApplicationController | |
def index | |
end | |
def welcome | |
require 'drb' | |
shared_obj = { id: params.require(:id) } | |
render text: shared_obj.to_s | |
def shared_obj.send_to_digi(msg) | |
render text: msg | |
end | |
DRb.start_service('druby://localhost:9001', shared_obj) | |
DRb.thread.join | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment