ooor 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ooor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Valyi - www.akretion.com