extjs-mvc 0.1.32 → 0.1.33

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.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/active_record/model.rb +2 -1
  3. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.32
1
+ 0.1.33
@@ -18,7 +18,8 @@ module ExtJS
18
18
  self.class.extjs_record_fields.each do |f|
19
19
  if refl = self.class.reflections[f]
20
20
  if refl.macro === :belongs_to
21
- data[f] = self.send(f).to_record
21
+ assn = self.send(f)
22
+ data[f] = (assn) ? assn.to_record : {} # <-- a thing was requested, give emtpy thing.
22
23
  elsif refl.macro === :has_many
23
24
  #data[f] = self.send(f).collect {|r| r.to_record} CAREFUL!!!!!!!!!!!!1
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: extjs-mvc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Scott