Skip to content

Commit

Permalink
Little fix for using with Ruby 1.9
Browse files Browse the repository at this point in the history
Stringify 'method' variable: ruby 1.9 has Symbol
in instance_methods instead of String
  • Loading branch information
lhotski committed Oct 7, 2011
1 parent be633fd commit 6de574b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/action_controller/acts/rails_xmlrpc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def add_method_handlers
self.class.instance_methods(false).each do |method|
unless ['xe_index', 'xe_method_prefix', 'xe_method_list'].member?(method)
puts "Adding XMLRPC method for #{method.to_s}"
@xmlrpc_server.add_handler(xe_method_prefix + method) do |*args|
@xmlrpc_server.add_handler(xe_method_prefix + method.to_s) do |*args|
self.send(method.to_sym, *args)
end
end
Expand Down

0 comments on commit 6de574b

Please sign in to comment.