Class: ExtDirect::Service::Base
- Inherits:
-
Object
- Object
- ExtDirect::Service::Base
- Defined in:
- lib/ext_direct/service/base.rb
Class Method Summary collapse
- .polling_service(name, params = {}, &proc) ⇒ Object
- .service(name, params = {}, &proc) ⇒ Object (also: remoting_service)
Class Method Details
.polling_service(name, params = {}, &proc) ⇒ Object
13 14 15 16 17 |
# File 'lib/ext_direct/service/base.rb', line 13 def polling_service(name, params = {}, &proc) action = action_name_format(self.model_name) method = method_name_format(name) ExtDirect::Service::Provider.register(:polling, action, method, proc, params) end |
.service(name, params = {}, &proc) ⇒ Object Also known as: remoting_service
5 6 7 8 9 |
# File 'lib/ext_direct/service/base.rb', line 5 def service(name, params = {}, &proc) action = action_name_format(self.model_name) method = method_name_format(name) ExtDirect::Service::Provider.register(:remoting, action, method, proc, params) end |