Skip to content

Instantly share code, notes, and snippets.

@heisters
Created July 23, 2011 01:24
Show Gist options
  • Save heisters/1100818 to your computer and use it in GitHub Desktop.
Save heisters/1100818 to your computer and use it in GitHub Desktop.
Fix ParticipantList bug
require 'ruote/svc/participant_list'
class Ruote::ParticipantList
def instantiate_with_arg_normalization pinfo, opts={}
pinfo = [pinfo, {}] if pinfo.is_a?(String) # This will get all breaky if we ever pass options to the participant definition
instantiate_without_arg_normalization(pinfo, opts)
end
alias_method_chain :instantiate, :arg_normalization
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment