ooor 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/app/models/open_object_resource.rb +1 -1
- metadata +1 -1
@@ -356,7 +356,7 @@ class OpenObjectResource < ActiveResource::Base
|
|
356
356
|
def method_missing(method_symbol, *arguments)
|
357
357
|
method_name = method_symbol.to_s
|
358
358
|
return super if attributes.has_key?(method_name) or attributes.has_key?(method_name.first(-1))
|
359
|
-
if method_name.end_with?('=')
|
359
|
+
if method_name.end_with?('=') && @relations[method_name.sub('=', '')]
|
360
360
|
@relations[method_name.sub('=', '')] = *arguments
|
361
361
|
return
|
362
362
|
end
|