extjs-mvc 0.2.1 → 0.2.2

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/extjs/data/store.rb +3 -2
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -10,17 +10,18 @@ module ExtJS::Data
10
10
  options[:format] = 'json' if options[:format].nil?
11
11
 
12
12
  @config = options[:config]
13
-
13
+ @grouping = options[:grouping] || false
14
14
  @format = options[:format]
15
15
  @proxy = options[:proxy] || 'http'
16
16
  @writer = options[:writer]
17
- @type = (@proxy === 'direct' ? @proxy : @format).capitalize
17
+ @type = (options[:type] === 'grouping' ? options[:type] : @proxy === 'direct' ? @proxy : @format).capitalize
18
18
  @controller = self.get_controller(options[:controller])
19
19
  @model = self.get_model(options[:controller], options[:model])
20
20
 
21
21
  # Merge Reader/Proxy config
22
22
  @config.merge!(@controller.extjs_reader(@model))
23
23
  @config.merge!(@controller.extjs_proxy(options))
24
+ @config["format"] = @format
24
25
 
25
26
  # Set storeId implicitly based upon Model name if not set explicitly
26
27
  @id = @config["storeId"] = @model.to_s.downcase unless @config["storeId"]
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Scott
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-06 00:00:00 -04:00
12
+ date: 2009-10-07 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency