Using numbers for state and countries ids in AddressSerializer

This commit is contained in:
Rob Harrington
2016-11-18 12:10:08 +11:00
parent fbd3d99b1b
commit 21d8aafd97

View File

@@ -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