cookpad / arproxy

Arproxy is a proxy between ActiveRecord and database adapter
https://github.com/cookpad/arproxy
MIT License
327 stars 26 forks source link

Now supports extra methods of connection (for example, exec_query for Po... #2

Closed ukolovda closed 8 years ago

ukolovda commented 11 years ago

I append supports extra methods of connection (for example, PostgreSQLAdapter::exec_query e.t.c.). Use config.extra_methods = [:exec_query, :exec_delete] for append more methods.

mirakui commented 9 years ago

Sorry for late reply :bow:

Hmm, I don't think it's a good idea to override method_missing to hook those methods because it has huge side effects. It's make sense for me that you need to support exec_query and more methods, but it should be implemented by more safety codes.