module Ecoportal module API class V2 class Page class Component class Law < Common::Content::DoubleModel class << self def new_doc { "id" => new_uuid, "weight" => 999 } end end passkey :id passforced :patch_ver, default: 1 passthrough :title, :weight passthrough :content, :product passthrough :legislation, :category, :topic passdate :updated_at, read_only: true def to_s [legislation, title, category, topic].join(" <:> ") end end end end end end end