If your object is already designed to implement all of the Active Model you can use the default to_model implementation,
which simply returns self.
If your model does not act like an Active
Model object, then you should define :to_model yourself
returning a proxy object that wraps your object with Active Model compliant methods.
# File activemodel/lib/active_model/conversion.rb, line 32
APIdock release: IRON STEVE (1.4)
If you have any comments, ideas or feedback, feel free to contact us at
APIdock copyright Nodeta Oy 2008-2016
Check out how the team behind APIdock connects Pivotal Tracker, GitHub and group chat to one workflow.