Module: ActiveRemote::Search
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#reload ⇒ Object
Reload this record from the remote service.
Instance Method Details
#reload ⇒ Object
Reload this record from the remote service.
135 136 137 138 139 |
# File 'lib/active_remote/search.rb', line 135 def reload fresh_object = self.class.find(scope_key_hash) @attributes = fresh_object.instance_variable_get(:@attributes) self end |