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

#_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

#reloadObject

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