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.



116
117
118
119
# File 'lib/active_remote/search.rb', line 116

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