Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Model#copy, this should really be specced...

  • Loading branch information...
commit b97eee39fa827a49d8021b47623b03780675a5c7 1 parent ff5c33f
@dbussink dbussink authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/dm-core/model.rb
View
4 lib/dm-core/model.rb
@@ -309,8 +309,8 @@ def create!(attributes = {})
# TODO SPEC
def copy(source, destination, query = {})
repository(destination) do
- repository(source).read_many(query).each do |resource|
- self.create(resource)
+ repository(source).read_many(scoped_query(query)).each do |resource|
+ self.create(resource.attributes)
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.