I have a webservice. And I want to pass in, a model.
So, for example:
api_method :save_person, :expects => [Person]
When I do this I get an error saying that I cannot have ActiveRecord
objects as parameters. Fine. I can have AWS Structs as parameters. I
don’t want to start ‘maintaining’ a struct everytime I change the table
structure od Persons.
So, is there an elegant way to ‘port’ my ActiveRecod Person to my Struct
Person, or, is there another way to make use of my ActiveRecord Person
to be able to pass it in as a parameter to my webservice method?