Permalink
Browse files

Fixed return value in HasMany.value

  • Loading branch information...
1 parent 271f554 commit deaf27eb3541970eefd3aa710f0c4976cf62aa7a @serebryakov serebryakov committed May 27, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/lib/associations/has_many.rb
@@ -139,6 +139,7 @@ def value
:conditions => { reverse => @instance },
:skip => [reverse]
})
+ @value || []
end
##

0 comments on commit deaf27e

Please sign in to comment.