Permalink
Browse files

removed IN function

  • Loading branch information...
1 parent 41073cb commit 6aeee7fb46c5a4906dcdeebb59de334b5fc7ca7b syntacticx committed Feb 12, 2009
Showing with 0 additions and 13 deletions.
  1. +0 −13 src/active_record/adapters/in_memory.js
@@ -490,19 +490,6 @@ Adapters.InMemory.method_call_handler = function method_call_handler(name,row,ar
};
Adapters.InMemory.MethodCallbacks = (function(){
var methods = {};
-
- //BUG: currently only supports "id" column
- methods['in'] = function _in(row){
- for(var i = 1; i < arguments.length; ++i)
- {
- if(row.id == arguments[i])
- {
- return true;
- }
- }
- return false;
- };
-
var math_methods = ['abs','acos','asin','atan','atan2','ceil','cos','exp','floor','log','max','min','pow','random','round','sin','sqrt','tan'];
for(var i = 0; i < math_methods.length; ++i)
{

0 comments on commit 6aeee7f

Please sign in to comment.