From 9c98bcabd29172b3949fe0d607acdd27d7fcb278 Mon Sep 17 00:00:00 2001 From: Leandro Nunes dos Santos Date: Tue, 26 Jul 2016 12:12:15 -0300 Subject: [PATCH] fix variable name --- app/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/helpers.rb b/app/api/helpers.rb index 97dc03e..127ed7a 100644 --- a/app/api/helpers.rb +++ b/app/api/helpers.rb @@ -232,7 +232,7 @@ module Api order = 'RANDOM()' else field_name, direction = params[:order].split(' ') - assoc_class = extract_associated_classname(object, smethod_or_relation) + assoc_class = extract_associated_classname(object, method_or_relation) if !field_name.blank? and assoc_class if assoc_class.attribute_names.include? field_name if direction.present? and ['ASC','DESC'].include? direction.upcase -- libgit2 0.21.2