Skip to content

Commit

Permalink
Fix missing firstname lastname api conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Mar 15, 2021
1 parent 88f7dad commit a7e870b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions config/constants/ar_to_api_conversions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,18 @@ class ARToAPIConversions
column_names: 'columns',
is_public: 'public',
sort_criteria: 'sortBy',
message: 'post'
message: 'post',
firstname: 'firstName',
lastname: 'lastName',
}.freeze

# Conversions that are unidirectional (from the API to AR)
# This can be used to still support renamed filters/sort_by, like for created/updatedOn.
WELL_KNOWN_API_TO_AR_CONVERSIONS = {
created_on: 'created_at',
updated_on: 'updated_at'
updated_on: 'updated_at',
firstName: 'firstname',
lastName: 'lastname',
}.freeze

class << self
Expand Down

0 comments on commit a7e870b

Please sign in to comment.