Specifically, I'd like to easily be able to send all id values to the client as strings without having to call to_s on every id attribute and without changing the Rails default of making ids integers.
So, instead of
attribute :contract_id do |obj|
obj.contract_id.to_s
end
Specifically, I'd like to easily be able to send all id values to the client as strings without having to call
to_s
on every id attribute and without changing the Rails default of making ids integers.So, instead of
Something like
or