rails-extjs-direct 0.0.1 → 0.0.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.
@@ -8,10 +8,16 @@ class Rails::ExtJS::Direct::RemotingProvider
8
8
  end
9
9
 
10
10
  def call(env)
11
+ @logger.info('---------------- PARAMS ---------------------')
12
+ #@logger.info(env.to_yaml)
13
+
14
+
15
+ @logger.info(env["action_controller.request.request_parameters"].to_yaml)
16
+
11
17
 
12
18
  if env["PATH_INFO"].match("^"+@router_path)
13
19
  parse_params(env)
14
- @logger.info('chris is here bitches ' + @params["foo"].to_s)
20
+
15
21
  @logger.info('env: ' + env.to_yaml)
16
22
 
17
23
  output = []
@@ -36,9 +42,9 @@ class Rails::ExtJS::Direct::RemotingProvider
36
42
 
37
43
  def parse_params(env)
38
44
  @params = env["REQUEST_METHOD"] == "GET" ? CGI.parse(env["QUERY_STRING"]) : env["rack.request.form_hash"]
39
- @params.each do |k,v|
40
- @params[k] = @params[k].first
41
- end
45
+ #@params.each do |k,v|
46
+ # @params[k] = @params[k].first
47
+ #end
42
48
  #@params["data"] = JSON.parse(@params["data"]) if @params["data"]
43
49
  #@logger.info('params: ' + @params.to_yaml)
44
50
  #env["QUERY_STRING"] = {}
@@ -4,7 +4,7 @@
4
4
  module Rails
5
5
  module ExtJS
6
6
  module Direct
7
- VERSION = '0.0.1'
7
+ VERSION = '0.0.2'
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-extjs-direct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Scott