aboutsummaryrefslogtreecommitdiff
path: root/app/models/resource.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/resource.rb')
-rw-r--r--app/models/resource.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/resource.rb b/app/models/resource.rb
index c76a9c6..c603978 100644
--- a/app/models/resource.rb
+++ b/app/models/resource.rb
@@ -12,7 +12,7 @@ class Resource < ApplicationRecord
has_many :classifications
has_many :sections, through: :classifications
- store_accessor :feature, :geometry, :properties
+ store_accessor :feature, :geometry, :properties, :meta, :version
# validates_associated :agent
@@ -77,7 +77,7 @@ class Resource < ApplicationRecord
# Add IN COMMON Resource UUID property
out['properties']['uuid'] = uuid
# Add IN COMMON Agent UUID property
- out['properties']['agent_uuid'] = agent.uuid
+ out['version'] = { agent: agent.uuid, resource: uuid, revision: 1 }
out
end
end