app/controllers/api/resources_controller/base.rb in rails-add_ons-0.4.0 vs app/controllers/api/resources_controller/base.rb in rails-add_ons-0.4.1

- old
+ new

@@ -118,10 +118,10 @@ when 'order' scope = scope.order(condition) when 'includes' scope = scope.includes(condition.map(&:to_sym)) else - condition_statement = ::Api::ResourcesController::ConditionParser.new(field, condition).condition_statement + condition_statement = ::Api::ResourcesController::ConditionParser.new(scope, field, condition).condition_statement scope = scope.where(condition_statement) end end scope end