lib/ecoportal/api/v2/page/component/action.rb in ecoportal-api-v2-0.8.9 vs lib/ecoportal/api/v2/page/component/action.rb in ecoportal-api-v2-0.8.10
- old
+ new
@@ -5,17 +5,18 @@
class Component
class Action < Common::Content::DoubleModel
class << self
def new_doc
{
- "id" => new_uuid,
- "weight" => 9999
+ "id" => new_uuid,
+ "weight" => 9999
}
end
end
passkey :id
- passthrough :patch_ver, :name
+ passforced :patch_ver, default: 1
+ passthrough :name
passthrough :weight, :other_information
passboolean :complete
passdate :created_at, read_only: true #, :completed_at
passthrough :created_by, read_only: true