Parsistence 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/Parsistence/Model.rb +5 -1
- data/lib/Parsistence/version.rb +1 -1
- metadata +3 -3
data/lib/Parsistence/Model.rb
CHANGED
@@ -24,11 +24,15 @@ module Parsistence
|
|
24
24
|
end
|
25
25
|
|
26
26
|
# Setters
|
27
|
-
if
|
27
|
+
if RESERVED_KEYS.include?(method) && setter
|
28
|
+
return self.PFObject.send("#{method}=", args)
|
29
|
+
elsif relations.include?(method) && setter
|
28
30
|
return setRelation(method, args.first)
|
29
31
|
elsif fields.include?(method) && setter
|
30
32
|
return setField(method, args.first)
|
31
33
|
# Getters
|
34
|
+
elsif RESERVED_KEYS.include?(method)
|
35
|
+
return self.PFObject.send(method)
|
32
36
|
elsif relations.include? method
|
33
37
|
return getRelation(method)
|
34
38
|
elsif fields.include? method
|
data/lib/Parsistence/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Parsistence
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 6
|
10
|
+
version: 0.3.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jamon Holmgren
|