Module: ActionController::Acts::XmlrpcEndpoint::ClassMethods
- Defined in:
- lib/action_controller/acts/xmlrpc_endpoint.rb
Instance Method Summary collapse
Instance Method Details
#exposes_xmlrpc_methods(options = {}) ⇒ Object
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( = {}) configuration = { :method_prefix => nil } configuration.update() if .is_a?(Hash) before_filter(:add_method_handlers, :only => [:xe_index]) class_eval <<-EOV require 'xmlrpc/server' include ActionController::Acts::XmlrpcEndpoint::InstanceMethods def xe_method_prefix '#{configuration[:method_prefix]}' end EOV end |