extjs-mvc 0.1.6 → 0.1.7

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -32,7 +32,16 @@ module ExtJS::Helpers
32
32
  end
33
33
  script += "});"
34
34
  end
35
- "new Ext.data.#{type}Store(#{params[:config].to_json});#{script}"
35
+
36
+ if params[:config]["writer"] # <-- ugly hack because 3.0.1 can't deal with Writer as config-param
37
+ writer = params[:config].delete("writer")
38
+ json = params[:config].to_json
39
+ json[json.length-1] = ','
40
+ json += "writer:new Ext.data.#{params[:format].capitalize}Writer(#{writer.to_json})}"
41
+ "new Ext.data.#{type}Store(#{json});#{script}"
42
+ else
43
+ "new Ext.data.#{type}Store(#{params[:config].to_json});#{script}"
44
+ end
36
45
 
37
46
  end
38
47
  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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Scott