extjs-mvc 0.1.32 → 0.1.33

Sign up to get free protection for your applications and to get access to all the features.
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