Commit 9c98bcabd29172b3949fe0d607acdd27d7fcb278

Authored by Leandro Santos
1 parent e30dab14
Exists in fix_sign_up_form

fix variable name

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/api/helpers.rb
... ... @@ -232,7 +232,7 @@ module Api
232 232 order = 'RANDOM()'
233 233 else
234 234 field_name, direction = params[:order].split(' ')
235   - assoc_class = extract_associated_classname(object, smethod_or_relation)
  235 + assoc_class = extract_associated_classname(object, method_or_relation)
236 236 if !field_name.blank? and assoc_class
237 237 if assoc_class.attribute_names.include? field_name
238 238 if direction.present? and ['ASC','DESC'].include? direction.upcase
... ...