Skip to content

Commit

Permalink
removed IN function
Browse files Browse the repository at this point in the history
  • Loading branch information
syntacticx committed Feb 12, 2009
1 parent 41073cb commit 6aeee7f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/active_record/adapters/in_memory.js
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6aeee7f

Please sign in to comment.