9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/action_controller/acts/xmlrpc_endpoint.rb', line 9
def exposes_xmlrpc_methods(options = {})
configuration = { :method_prefix => nil, :endpoint_action => "index" }
configuration.update(options) if options.is_a?(Hash)
before_filter(:add_method_handlers, :only => [:index])
class_eval " require 'xmlrpc/server'\n include ActionController::Acts::XmlrpcEndpoint::InstanceMethods\n\n def method_prefix\n '\#{configuration[:method_prefix]}'\n end\n EOV\nend\n"
|