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