I'm wondering if there's an efficient and elegant way to 'link' an activeresource object with an activerecord object.
I'm installing a payment system for my application, it works with an API that contains user table, wallet table, ... I want to store all this information in my application database. for eg: - when I create a wallet_object_api_side, I want to store it in wallet_object_my_database - when I update wallet_object_api_side, I want to update wallet_object_my_database
wallet_object_api_side MUST ALWAYS BE EQUAL TO wallet_object_my_database
Is there an elegant way to do both creating the api object and saving it in my database in a same request ?
Thank you.