Module: ActiveRemote::Search

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/active_remote/search.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#reloadObject

Reload this record from the remote service.



118
119
120
121
122
# File 'lib/active_remote/search.rb', line 118

def reload
  fresh_object = self.class.find(scope_key_hash)
  @attributes = fresh_object.instance_variable_get("@attributes")
  self
end