diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 15:47:10 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 15:47:10 -0400 |
commit | 07833d39c2885a5cddf38eeb860d79353c0f447b (patch) | |
tree | 5312d3ab6eefba0c936bb3b9a7bf2e879899af2e /lib/arel/engines/memory/relations | |
parent | 20b28b441b651d0404d64049253898c061a039be (diff) | |
download | rails-07833d39c2885a5cddf38eeb860d79353c0f447b.tar.gz rails-07833d39c2885a5cddf38eeb860d79353c0f447b.tar.bz2 rails-07833d39c2885a5cddf38eeb860d79353c0f447b.zip |
basic implementation of in memory insertions
Conflicts:
lib/arel/engines/memory/relations.rb
Diffstat (limited to 'lib/arel/engines/memory/relations')
-rw-r--r-- | lib/arel/engines/memory/relations/writes.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/arel/engines/memory/relations/writes.rb b/lib/arel/engines/memory/relations/writes.rb new file mode 100644 index 0000000000..fa8b84a32c --- /dev/null +++ b/lib/arel/engines/memory/relations/writes.rb @@ -0,0 +1,7 @@ +module Arel + class Insert < Compound + def eval + unoperated_rows + [Row.new(self, record.values.collect(&:value))] + end + end +end
\ No newline at end of file |