Parsistence 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,11 +24,15 @@ module Parsistence
24
24
  end
25
25
 
26
26
  # Setters
27
- if relations.include?(method) && setter
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
@@ -1,3 +1,3 @@
1
1
  module Parsistence
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jamon Holmgren