Guest User

Untitled

a guest
Feb 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. diff --git a/lib/dm-core/collection.rb b/lib/dm-core/collection.rb
  2. index 0e2938d..c094100 100644
  3. --- a/lib/dm-core/collection.rb
  4. +++ b/lib/dm-core/collection.rb
  5. @@ -634,11 +634,7 @@ module DataMapper
  6. #
  7. # @api public
  8. def update(attributes = {}, *allowed)
  9. - unless attributes.empty?
  10. - each { |r| r.update(attributes, *allowed) }
  11. - end
  12. -
  13. - true
  14. + all? { |r| r.update(attributes, *allowed) }
  15. end
  16.  
  17. ##
Add Comment
Please, Sign In to add comment