module Medea module ActiveModelMethods def to_model self end def errors obj = Object.new def obj.[](key) [] end def obj.full_messages() [] end def obj.any?() false end def obj.count() 0 end obj end def persisted? jason_state == :stale end def valid? true end end end