aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/engines/memory
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-07-25 18:37:00 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-07-25 18:37:00 -0700
commitef231deb9ef032e0910dcaec240b70996fc5e44e (patch)
tree6c8d1c2fad8789a93675011874e19076b8325acc /lib/arel/engines/memory
parent181f4633b8aff0efdff6643ddee800d6f78d1eac (diff)
downloadrails-ef231deb9ef032e0910dcaec240b70996fc5e44e.tar.gz
rails-ef231deb9ef032e0910dcaec240b70996fc5e44e.tar.bz2
rails-ef231deb9ef032e0910dcaec240b70996fc5e44e.zip
speed up method lookup by not mixing in modules
Diffstat (limited to 'lib/arel/engines/memory')
-rw-r--r--lib/arel/engines/memory/engine.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/arel/engines/memory/engine.rb b/lib/arel/engines/memory/engine.rb
index c7ac9422d4..0142c49aa3 100644
--- a/lib/arel/engines/memory/engine.rb
+++ b/lib/arel/engines/memory/engine.rb
@@ -1,16 +1,10 @@
module Arel
module Memory
class Engine
- module CRUD
- def read(relation)
- relation.eval
- end
-
- def create(relation)
- relation.eval
- end
+ def read(relation)
+ relation.eval
end
- include CRUD
+ alias :create :read
end
end
end