extjs-mvc 0.1.18 → 0.1.19
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 +1 -1
- data/lib/extjs/data/store.rb +4 -2
- metadata +2 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.19
|
data/lib/extjs/data/store.rb
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
#
|
4
4
|
module ExtJS::Data
|
5
5
|
class Store
|
6
|
+
attr_accessor :id, :format, :type, :controller, :model
|
7
|
+
|
6
8
|
def initialize(params)
|
7
9
|
options = params.extract_options!
|
8
10
|
options[:format] = 'json' if options[:format].nil?
|
@@ -21,7 +23,7 @@ module ExtJS::Data
|
|
21
23
|
@config.merge!(@controller.extjs_proxy(options))
|
22
24
|
|
23
25
|
# Set storeId implicitly based upon Model name if not set explicitly
|
24
|
-
@config["storeId"] = @model.to_s.downcase unless @config["storeId"]
|
26
|
+
@id = @config["storeId"] = @model.to_s.downcase unless @config["storeId"]
|
25
27
|
end
|
26
28
|
|
27
29
|
##
|
@@ -62,4 +64,4 @@ module ExtJS::Data
|
|
62
64
|
end
|
63
65
|
end
|
64
66
|
end
|
65
|
-
end
|
67
|
+
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.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Scott
|
@@ -51,7 +51,6 @@ files:
|
|
51
51
|
- test/test_helper.rb
|
52
52
|
has_rdoc: true
|
53
53
|
homepage: http://github.com/extjs/mvc
|
54
|
-
licenses:
|
55
54
|
post_install_message:
|
56
55
|
rdoc_options:
|
57
56
|
- --charset=UTF-8
|
@@ -72,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
71
|
requirements: []
|
73
72
|
|
74
73
|
rubyforge_project:
|
75
|
-
rubygems_version: 1.
|
74
|
+
rubygems_version: 1.2.0
|
76
75
|
signing_key:
|
77
76
|
specification_version: 2
|
78
77
|
summary: Ruby tools for ExtJS development
|