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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea0998e99cb07c88fd0e848be0c22cd4a5a4a819
4
- data.tar.gz: 66abcbeff7670f31910337d152c6422b8a36ed14
3
+ metadata.gz: e853212a273e9dec23d28d0a5fc3d9e49e898681
4
+ data.tar.gz: fa727cb8ff0b3ee6780435ed6d895b4be30ddfe0
5
5
  SHA512:
6
- metadata.gz: fafd50c83e14296b89eafd626eef4c60be7e318a44dad6eb65ec9842cecb55696d05f6aa6e528e00663937341d14dcd2083651ddb46b1492048955c8a9b7be8a
7
- data.tar.gz: ebaf50c25bec1094c1a334402693cabda2a2d17b6d787d4045c5687602b3a6e90c32ee2b06d4572997d888ff1a0f4286f20bd0934fee5ff3f9145828ae680ee3
6
+ metadata.gz: b1ec55701230a0f809d17e0ad735fe1b558a33f2d034092f9ddff0644f8d3a9228898c469e2d624a6242ecd792321d5d6d214f28a4684a20cb1b52e3d21b77d9
7
+ data.tar.gz: b822357cdd023c7021dcf09db490adafeba0f4c45bc268d46ef10e9c84fcb29527c25dc6c1810351760dfefe2c847f23b99f0bd53a6be781cce9b97eb36c7e7c
@@ -1,3 +1,3 @@
1
1
  module NaranyaEcm
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
@@ -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.11
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-19 00:00:00.000000000 Z
11
+ date: 2014-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport