rack-autocrud 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/rack/autocrud.rb +1 -1
  2. metadata +2 -2
data/lib/rack/autocrud.rb CHANGED
@@ -32,7 +32,7 @@ module Rack
32
32
  def _call(env)
33
33
  model_klass = nil
34
34
  endpoint_klass = nil
35
- verb,endpoint,*uri = env['REQUEST_URI'].split('/')
35
+ verb,endpoint,*uri = env['PATH_INFO'].split('/')
36
36
  verb = env['REQUEST_METHOD'].downcase
37
37
 
38
38
  # If this is to '/' pass it on
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-autocrud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 1.8.23
96
+ rubygems_version: 1.8.24
97
97
  signing_key:
98
98
  specification_version: 3
99
99
  summary: Rack middleware that automagically handles basic CRUD operations