Module: ActiveRemote::Search
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#_active_remote_search(args) ⇒ Object
:noapi:.
-
#reload ⇒ Object
Reload this record from the remote service.
Instance Method Details
#_active_remote_search(args) ⇒ Object
:noapi:
126 127 128 129 130 131 132 |
# File 'lib/active_remote/search.rb', line 126 def _active_remote_search(args) warn "DEPRECATED Model#_active_remote_search is depracted and will be remoted in Active Remote 3.0." run_callbacks :search do rpc.execute(:search, args) end end |
#reload ⇒ Object
Reload this record from the remote service.
136 137 138 139 |
# File 'lib/active_remote/search.rb', line 136 def reload fresh_object = self.class.find(scope_key_hash) @attributes.update(fresh_object.instance_variable_get('@attributes')) end |