Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/lib/dm-core/collection.rb b/lib/dm-core/collection.rb
- index 0e2938d..c094100 100644
- --- a/lib/dm-core/collection.rb
- +++ b/lib/dm-core/collection.rb
- @@ -634,11 +634,7 @@ module DataMapper
- #
- # @api public
- def update(attributes = {}, *allowed)
- - unless attributes.empty?
- - each { |r| r.update(attributes, *allowed) }
- - end
- -
- - true
- + all? { |r| r.update(attributes, *allowed) }
- end
- ##
Add Comment
Please, Sign In to add comment