Skip to content

Commit

Permalink
Fix Model#copy, this should really be specced...
Browse files Browse the repository at this point in the history
  • Loading branch information
dbussink committed Oct 11, 2008
1 parent ff5c33f commit b97eee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dm-core/model.rb
Expand Up @@ -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
Expand Down

0 comments on commit b97eee3

Please sign in to comment.