Fix warnings

JRuby-specific: fix 'warning: (...) interpreted as grouped expression'
This commit is contained in:
Benjamin Fleischer
2015-08-21 02:23:37 -04:00
parent 9aad8b4d29
commit d315151e8a
16 changed files with 77 additions and 54 deletions

View File

@@ -73,11 +73,9 @@ module ActiveModel
def associate(reflection)
self._reflections = _reflections.dup
unless method_defined?(reflection.name)
define_method reflection.name do
object.send reflection.name
end
end
define_method reflection.name do
object.send reflection.name
end unless method_defined?(reflection.name)
self._reflections << reflection
end