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

- old
+ new

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