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.



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