activeentity 0.0.1.beta3 → 0.0.1.beta4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/active_entity/base.rb +1 -0
- data/lib/active_entity/gem_version.rb +1 -1
- data/lib/active_entity/persistence.rb +20 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5dfb59ba38061e5f1fa3ad4e827c393ad9fddbcba056d223c78af8c7a9cf49de
|
|
4
|
+
data.tar.gz: da67ac3f9bad8719b2115da6fd923fce1c8acb2d86837318329eab59ae998bb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c1cbd7b7be5d0cb3f966ea94cc95177c565637d5aef7ef0ded63848927576aeaa67dc03041ac0854abce4ab549a587613a9e3ae9252344e51e6e62f424e6dd5
|
|
7
|
+
data.tar.gz: 6c2c30e2417e788b0b8ac7f2bb8fb54882da236721aa135357c95a4f49768b587f3978df34bc98a5341ab9e359b0824f4a0b32a0894b0a26a8e3b053bdb52173
|
data/lib/active_entity/base.rb
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module ActiveEntity
|
|
4
|
+
# = Active Entity \Persistence
|
|
5
|
+
module Persistence
|
|
6
|
+
extend ActiveSupport::Concern
|
|
7
|
+
|
|
8
|
+
def new_record?
|
|
9
|
+
true
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def destroyed?
|
|
13
|
+
false
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def persisted?
|
|
17
|
+
false
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeentity
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.1.
|
|
4
|
+
version: 0.0.1.beta4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- jasl
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-04-
|
|
11
|
+
date: 2019-04-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -100,6 +100,7 @@ files:
|
|
|
100
100
|
- lib/active_entity/locale/en.yml
|
|
101
101
|
- lib/active_entity/model_schema.rb
|
|
102
102
|
- lib/active_entity/nested_attributes.rb
|
|
103
|
+
- lib/active_entity/persistence.rb
|
|
103
104
|
- lib/active_entity/readonly_attributes.rb
|
|
104
105
|
- lib/active_entity/reflection.rb
|
|
105
106
|
- lib/active_entity/serialization.rb
|