module ActiveModel::Conversion
def to_model
define :to_model yourself returning a proxy object that wraps
If your model does not act like an \Active \Model object, then you should
person.to_model == person # => true
person = Person.new
end
include ActiveModel::Conversion
class Person
returns +self+.
you can use the default :to_model implementation, which simply
If your object is already designed to implement all of the \Active \Model
def to_model self end