moser-unit_controller 0.1.1 → 0.1.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.
@@ -24,9 +24,11 @@ module UnitController
24
24
  end
25
25
  if status
26
26
  status = ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE[status] if status.is_a?(Symbol)
27
- response.headers["Status"] = status.to_s
27
+ #response.headers["Status"] = status.to_s
28
+ response.status = status
28
29
  else
29
- response.headers["Status"] = ActionController::Base::DEFAULT_RENDER_STATUS_CODE
30
+ #response.headers["Status"] = ActionController::Base::DEFAULT_RENDER_STATUS_CODE
31
+ response.status = ActionController::Base::DEFAULT_RENDER_STATUS_CODE
30
32
  end
31
33
  end
32
34
  end
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moser-unit_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Manges
8
+ - Martin Vielsmaier
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2008-10-24 00:00:00 -07:00
13
+ date: 2009-07-05 00:00:00 -07:00
13
14
  default_executable:
14
15
  dependencies: []
15
16