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