naranya_ecm-sdk 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/naranya_ecm-sdk/version.rb +1 -1
- data/lib/naranya_ecm/models/content_version.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e853212a273e9dec23d28d0a5fc3d9e49e898681
|
4
|
+
data.tar.gz: fa727cb8ff0b3ee6780435ed6d895b4be30ddfe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1ec55701230a0f809d17e0ad735fe1b558a33f2d034092f9ddff0644f8d3a9228898c469e2d624a6242ecd792321d5d6d214f28a4684a20cb1b52e3d21b77d9
|
7
|
+
data.tar.gz: b822357cdd023c7021dcf09db490adafeba0f4c45bc268d46ef10e9c84fcb29527c25dc6c1810351760dfefe2c847f23b99f0bd53a6be781cce9b97eb36c7e7c
|
@@ -22,6 +22,13 @@ module NaranyaEcm::Models
|
|
22
22
|
belongs_to :content, class_name: "naranya_ecm/models/content"
|
23
23
|
has_many :media_resources, class_name: "naranya_ecm/models/media_resource"
|
24
24
|
|
25
|
+
before_save :filter_out_read_only_attributes
|
26
|
+
def filter_out_read_only_attributes
|
27
|
+
%w(lifecycle_name content media_resources url created_at updated_at).each do |roa|
|
28
|
+
self.attributes.delete roa
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
25
32
|
#include NaranyaEcm::Lifecycles::Lifecycleable
|
26
33
|
# include NaranyaEcm::Lifecycles::VersionLifecycle
|
27
34
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: naranya_ecm-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roberto Quintanilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|