lib/ruote/part/smtp_participant.rb in ruote-2.2.0 vs lib/ruote/part/smtp_participant.rb in ruote-2.3.0
- old
+ new
@@ -1,7 +1,7 @@
#--
-# Copyright (c) 2005-2011, Alain Hoang and John Mettraux.
+# Copyright (c) 2005-2012, Alain Hoang and John Mettraux.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -80,10 +80,10 @@
include LocalParticipant
include TemplateMixin
def initialize(opts)
- @opts = opts.inject({}) { |h, (k, v)| h[k.to_s] = v; h }
+ @opts = Ruote.keys_to_s(opts)
end
def consume(workitem)
to = workitem.fields['email_target'] || @opts['to']