Method: Elos::Index::Model::Object#method_missing

Defined in:
lib/elos/index/model/object.rb

#method_missing(method, *args, **hargs, &block) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/elos/index/model/object.rb', line 13

def method_missing(method, *args, **hargs, &block)
  if method.to_s.end_with?('=')
    object.send(method, objectify(args[0]))
  elsif object.respond_to?(method)
    object.send(method, *args)
  else
    super
  end
end