mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Using numbers for state and countries ids in AddressSerializer
This commit is contained in:
@@ -9,12 +9,4 @@ class Api::AddressSerializer < ActiveModel::Serializer
|
||||
def state_name
|
||||
object.state.andand.abbr
|
||||
end
|
||||
|
||||
def state_id
|
||||
object.state_id.andand.to_s
|
||||
end
|
||||
|
||||
def country_id
|
||||
object.country_id.andand.to_s
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user